one of too things #1 no gas week fuel pump , #2 no spark faulty ingnition coil,modual depending on the year of the car drive safe
A lot of possible causes, I recommend a careful investigation.
Out of gas
Ford f350 super duty shut off and lose power while driving
1998 that when
If you lost power while driving it could be the alternator. Its not charging your batter anymore
The mass air sensor sometimes would cause this problem
If by shut off you mean stall, your ETM needs either cleaning or replacing
no gas
Nothing will happen, just restart the update.
check the crank shaft actuator?
A bad timing belt could make the engine shut down but it would only happen once, not sometimes.
I needed a battery when I was having the same problem.