This depends on whether the vehicle is gas or diesel fuel. A gasoline powered vehicle can have this fault if the fuel pump is failing. This causes the engine to "cut out" at high RPMs, when more fuel is required. It can also fail if the ignition coil is failing. When the coil is failing it tends to overheat during prolonged driving and cause the engine to stall. Diesel vehicles can either be caused by a failing fuel pump, water in the fuel filter that needs to be drained or a break in the wire powering the injector pump solenoid. If you happen to own a Nissan Serena with a SD20 engine, watch this spot. Mine has just started to exhibit those symptoms and I will be sure to update this answer as soon as the dealer has finished checking mine.
Died while driving? Alternator
Overheating ? - Check radiator for water and coolant, and engine for enough oil and not old burnt oil
if it won't start up again chances are it's probably your fuel pump
there is humidity in your engine control module
check your timing belt
engine rubber mounts or timin out
when i am driving my toyato 2001 Eaco stops running, it will start back up
Why engine stalls on 1993 Chrysler Intrepid while driving and sometimes at stops?
Stalling while driving may be caused by a collapsing or kinked neoprene fuel line.
it may be the o2 scensor
Check timing belt
The reason your 2001 Hyundai Sonata lost all power while you were driving and stalled and won't start again is either the battery or the alternator. If you have no power you most likely have an alternator problem.
The year, make, model and engine info would help.
If your engine is over heating it could get too hot and quit running, then start again when it gets cooled off. Otherwise, "something" got too hot and quit working, cools off and works again.
A faulty alternator will cause those symptoms. You might want to get t checked out.
lots of possibilities but fuel system electronics, or timing belt are likely. more details needed
Our Vehicles have HORRIBLE Instrument Cluster Assemblies in them. Get it checked.
Have someone check your fuel pump pressure,if you lose fuel pressure while driving,and then it comes back that would explain why it seems to start by itself.
if the sound of the engine cranking sounds unusual, your timing belt has snapped.
probably it had no gas or it was just to old
try the cam shaft sensor
The engine needs fuel, compression and spark to run, one of those is missing. Being a GM product my money is on a faulty fuel pump.
Your car lost power while you were driving and it will not start now because the battery is depleted.
If you lost power while driving and it did not start again, it could be an alternator issue. Double check the battery just to make certain it isn't an issue with the cable connectors too.
check fuel pump fuel pump