Happened to my friend in a 2017 or 2018 model S earlier this year. Drove through a large puddle, not like deep standing water, and after the stopped the car it wouldn’t start back. Water had gotten into the motor case and tripped a sensor. Whole thing shut down. Only fix was replacing the assembly.
Essentially this issue, https://insideevs.com/news/534878/tesla-models-motor-fail-ra...