If your vehicle is showing car completely loses power and dies while driving, here are the most likely causes and the parts you'll need to fix each one.
If the alternator stops generating electricity, the car runs entirely on the battery. Once the battery drains, the spark plugs and fuel pump lose power, causing the engine to die while driving.
The fuel pump is responsible for sending gas from the tank to the engine. If it fails, the engine starves of fuel and will sputter and stall out.
This sensor monitors the exact position and speed of the engine internals. If it fails or overheats, the engine computer loses its timing reference and instantly cuts spark and fuel to prevent damage.
The MAF sensor measures air entering the engine to calculate fuel delivery. If it fails, or is accidentally left unplugged after checking the air filter, the engine can stall unexpectedly under load.
The electrical switch behind the key cylinder can wear out over time. If the internal contacts fail while driving, it cuts electrical power to the engine's ignition and fuel systems, shutting it down like a flipped switch.
A catastrophic mechanical failure where the engine's internal timing snaps. The engine will die instantly, sound completely different (like it's spinning too fast) when trying to restart, and may suffer severe internal valve damage.