The car initially runs but will not continue running, and stalls shortly.
Troubleshooting car problems when the car wont stay running
When the car initially runs then stalls shortly after running can cause by several reasons. However, to diagnose the real cause follow the below car diagnostics.
When the problems happen only when the engine is cold, the cause is a bad electric sensor. This problem occurs on a fuel injection system car. One of the electronic sensors is gone bad which causes the computer to not functioning properly in calculating the amount of fuel the engine is needed. When the problem happens on cold weather of if the engine is cold means that the sensors is not sensing the cold outside temperature thereby causing the engine to not getting the necessary amount of air/fuel ratio to keep it running on cold temperature.
When the problem happened even the engine is not cold then this could be a case of a faulty electric fuel pump. A car with a fuel injection system has an electric fuel pump you can tell if the fuel pump is working when you heard a whirring sound. When the pump do not produce a whirring sound then it is possible that the pump is faulty. A faulty pump will not provide the engine with enough fuel to keep it running after starting.
Possible cause why car runs but won't stay running
Bad electric sensor, Faulty electric fuel pump
How to fix problem of car that wont stay running
In either case, bring the car to a reputable auto repair shop and have a mechanic confirm the problem. To determine if the car has faulty sensor, hooked up the car to an engine analyzer. If the sensor is faulty replace the sensor, usually there is no more than one sensor that is faulty. If the problem is a faulty electric fuel pump, just replace the parts. Replacing the pump is simple job depending on where it is located.