Y does my car shut off while I’m driving?..
It clearly has a problem. Is there a yellow or red light shining or flashing on the dash before it just stops?
Any problems starting in the morning, after sitting all night?
Any problems restarting, after it shuts down while driving?
A faulty crankshaft position sensor can cause the engine to shut off as the vehicle is being driven
One of the things the crank sensor does is it informs the computer whether or not the crankshaft is rotating.
If for some reason the computer loses the signal from the sensor, and the computer thinks the crankshaft is no longer rotating, the computer see’s no reason to operate the fuel and ignition systems. And the engine shuts off.