check the fuel filter, may be clogged.
change the fuel filter you have two
because it's a bad car
Stalling while driving may be caused by a collapsing or kinked neoprene fuel line.
cam position sensor has failed
Bad fuel filter or maybe some water in the gas tank.
A bad crank sensor will definitely cause the car to stall. Eventually the car will stop starting up again, or if it does, it will die down around ten minutes. A good thing to do if you're sure it's the crank sensor, replace it.
replace iignition coil
it is crankshaft position sensor.
If the check engine light is on...might be a dirty EGR valve.
Year, Make, Model, engine size please. possibly an ignition or sensor (electronic part).
crank sensor is getting hot/ bad crank sensor
fuel injector