You probably got the ignition wet. It will have to be thoroughly dried before it will start and run again.
A car can hydroplane, essentially glide on water
car starts but shut off while driving
no
If fuel cannot get through the fuel filter, it will stop running.
You are. Don't drive through a flood. A car engine was not intended to be submerged in water, particularly dirty flood water.
Possible a bad or corroded ground cable .
Sometimes a car stalls when driving though water because water got sucked up into the engine. This can cause a lot of damage, so don't attempt to restart the car after it stalls. Have the car towed so the engine can be stripped down and drained of the water.
You blew your engine or head gaskets.
A lot of possible causes, I recommend a careful investigation.
yep... especially if the alternator is bad too
fuel pump
if it is a big puddle the water when splashed might be hiting a sensor if it is a big puddle the water when splashed might be hiting a sensor