There are a good number of reasons for it shutting off. the common reason is the magnetic pickup in the distibutor. If it is running a little rough it could also be the ignition module which is on the firewall agains the drivers in fender. It could also be a combination of both.
Ford f350 super duty shut off and lose power while driving
car starts but shut off while driving
Sounds like idle is too low or may need tune up
Out of gas
Possible a bad or corroded ground cable .
no gas
Probably the alternator.
Peeing off the side
If you lost power while driving it could be the alternator. Its not charging your batter anymore
There are several complications that can cause a 1999 Dodge Caravan to shut off while driving. Most common issues include ignition problems or fuel delivery problem.
1998 that when
Crank trigger