Car shuts off, the engine runs in park

I was stopped in the traffic a few days ago, when my car shut off. I restarted it and after putting it into drive, the car shut off again. I attempted to restart it several times more, until it eventually started in drive. The fuel pump has been replaced along with the fuel filter. The car shuts off in neutral and reverse as well. The engine keeps running when I put it in park. What might be the problem with my car?
Experienced mechanics share their insights in answering this question :
Hi! You may be experiencing an issue caused by the idle air control, the fuel injector, or EGR valve. If the engine runs fine while driving down the road, but won’t idle, then thats different than it running bad all of the time. A technician, such as one from YourMechanic, can inspect the stalling issue by checking those specific systems I mentioned above that affect idle quality. Sometimes a bit of maintenance, such as cleaning the throttle body will take care of idle problems. Best of luck!

How to Identify and Fix Common car Problems ?

Our sources include academic articles, blog posts, and personal essays from experienced mechanics :

The most common sign of a clogged fuel filter is trouble starting the car, since it depletes the oil supply going to the engine. Although a dirty fuel filter leads to ignition difficulty, a fully-clogged filter will fail completely, and the engine won`t start at all.
Faulty Fuel Filter

If the fuel filter gets clogged and the fuel does not reach the engine chamber in the right quantity then the engine will not be able to perform at its optimum level. You will feel a loss in power while accelerating and at times intermittent jerks.

A clogged fuel filter causes low fuel pressure that results in a lean fuel condition and engine misfire. This can result in poor fuel mileage, rough idling and possibly cause the check engine light to come on. Once that light is on, it`s time for a trip to the repair shop.
Poor Engine Performance

Under heavy or high-speed acceleration, a clogged fuel filter may cause the engine to randomly hesitate, surge or sputter. Although there may be no symptoms under normal driving conditions, a clogged fuel filter will starve the engine of the extra fuel needed during hard acceleration.

A plugged fuel filter will restrict fuel flow to the engine. The drop in pressure may not be noticeable at idle, but as engine speed goes up, there may be a significant drop in pressure and a decrease in flow. The fuel filter is the fuel system`s first line of defense against contaminants.
The purpose of your vehicle`s fuel system is to store and supply the gasoline or diesel fuel your engine needs to run. Your vehicle`s fuel system is like the vascular system in your body: the fuel pump acts like the heart, the fuel lines act like the veins, and the fuel filter acts like the kidneys.
A failing/failed fuel pump will cause major performance and drivability issues with your vehicle. If your fuel to air ratio is off and the cylinders aren`t getting enough fuel, then the pistons aren`t firing and your engine is struggling to move the vehicle forward.
Some clear indications your fuel filter needs to be changed include a decrease in fuel efficiency, a check engine light on, and/or sputtering while accelerating.
Noises, backfires, and sputtering engines indicate a fuel pump gone bad. Typically, electronic fuel pumps won`t make a noise unless they begin to fail. An inconsistent fuel flow may cause internal engine problems, leading to hesitation when starting the vehicle or upon acceleration. Engine light comes on.
Dirty Fuel Filters

Like an air filter, the fuel filter screens dirt and debris in the fuel. If it gets dirty, it could prevent enough fuel from getting to your engine causing jerking in your car.

If your car stalls, then it means the engine has stopped working for any number of reasons. This can be the result of a mechanical issue or a problem with the air or fuel the car is receiving. Your car can stall in pretty much any situation. It might stall shortly after you`ve started it up or while you`re driving.
Fuel filter blocking can occur during cold temperatures when the fuel becomes too viscous to pass through the filter. This can starve the engine of fuel and cause loss of power, resulting in the vehicle either failing to start or going into `limp home` safety mode.
Restricted fuel supply to the engine might allow for proper fuel pressure while the engine is idling. However, when you`re accelerating or pulling a load, the demand for fuel is much greater. A blocked fuel filter prevents the fuel rail from staying full of fuel, restricting the amount of power your engine can produce.
If the car cranks when you turn the key, but the engine won`t start, it could be because fuel isn`t getting to the engine. One potential reason for this could be dirty fuel injectors. Over time, the fuel injector nozzles can become clogged with rust, corrosion or debris.
If your automobile is having a hard time starting, accelerating, or sputtering and stalling, you might have a clog in your fuel system.
If the car cranks when you turn the key, but the engine won`t start, it could be because fuel isn`t getting to the engine. One potential reason for this could be dirty fuel injectors. Over time, the fuel injector nozzles can become clogged with rust, corrosion or debris.
If your automobile is having a hard time starting, accelerating, or sputtering and stalling, you might have a clog in your fuel system.

Relevant Questions and Answers :

the most relevant questions and answers related to your specific issue

The engine of the car runs, but when I push the gas pedal it does not accelerate, and the engine does not rev.
ANSWER : Hello. It sounds like you may have an issue with your throttle position sensor. This sensor sends a reference voltage to your power-train control module, which uses that to determine ignition timing and fuel trims. If the power-train control module is not detecting the proper signal from the throttle position sensor, the engine may not accelerate properly. It’s probably a good idea for you to have a professional mobile mechanic come to your location and complete a car is slow to accelerate inspection first, so they can pinpoint what is causing this issue to occur and they will recommend the right repairs be completed.

Car shuts off, the engine runs in park
ANSWER : Hi! You may be experiencing an issue caused by the idle air control, the fuel injector, or EGR valve. If the engine runs fine while driving down the road, but won’t idle, then thats different than it running bad all of the time. A technician, such as one from YourMechanic, can inspect the stalling issue by checking those specific systems I mentioned above that affect idle quality. Sometimes a bit of maintenance, such as cleaning the throttle body will take care of idle problems. Best of luck!

Car shuts off, won’t stay running
ANSWER : The most common problem on this vehicle is the fuel pump and fuel pump module. If you remove the rear seat that the fuel pump cover is, on the passenger side. Listen to the fuel pump when it is running and when the car stalls your fuel pump will stop running about three to five seconds before the engine dies. Then you’ll know if the fuel pump is the culprit or not.

You can try and replace the fuel pump module first then replace the fuel pump. However, the fuel pump can short the module out, causing both to be bad and would need to be replaced. If you need assistance with this, feel free to contact a certified mechanic who can diagnose your starting issue firsthand and help you fix it accordingly.

Reduced engine power and car shuts off
ANSWER : Hi there. If there is carbon build up on the valves in the engine then that can cause a rough running condition and even a check engine light but that will not usually cause the vehicle to stall. It sounds like you have another issue going on here. From my experience with this vehicle most of the time this is caused by a voltage issue. Most of the time it is a loose or dirty ground connection or an issue with the ignition switch. I usually start by scanning the computer for codes to see what is coming up as that can assist in finding the issue. If the codes do not help then the electrical system would need to be diagnosed to see where the power is being lost. If you need to have this looked at, consider YourMechanic, as a certified mechanic can come to you to [diagnose why the check engine light is on and why the vehicle is stalling] https://www.yourmechanic.com/services/car-is-stalling-inspection

I put the wrong key in my car and a few weeks later my car just shut down and it will not start I believe it’s the computer but…
ANSWER : Hi there. What had happened is the wrong key set the security to the vehicle. This is to prevent the vehicle from starting with the wrong keys. Try removing the battery cables (+) and (-) for 13 minutes. During that time, put the original key in the ignition and turn it on. Activate everything in the car even though there is no power. Then remove the key and hook up the battery cables. The computer should have reset and reset the security. If the security is still being tripped, then I recommend seeking out a professional, such as one from Your Mechanic, to help you

Car shuts off, tachometer shuts off with car running
ANSWER : Hello – I believe your crankshaft position sensor, your camshaft position sensor, or both – are failing. These 2 sensors provide timing for the ignition – when to fire each spark plug. And, they also provide a trigger for the tachometer, since they are monitoring engine revolutions at the same time as providing ignition timing information. I would recommend a engine inspection by a mobile, professional mechanic, such as one from YourMechanic, who will come to your location, diagnose this problem, give you an accurate assessment of damage and cost estimate for repairs.

I pulled into a parking spot and put my car into park, when I lifted my foot from the brake the car continues forward.
ANSWER : The vehicle transmission did not get back to the park position due to the shift cable came off of the transmission shift linkage. You will need to have a mechanic like one from YourMechanic come to you and check the shift cable connection at the transmission to see if the shift cable bushing broke and let the cable end disengage from the shift linkage. The shift cable may need replaced if the cable end bushing is not available. I recommend a mechanic check the shift cable and replace cable or repair cable end as parts allow.

Car transmission stuck in Reverse, shifter stuck in Park, Car won’t start.
ANSWER : Hello. You will need to look under the vehicle where the shifter cable hooks to the transmission and look at the cable connector end for a worn out bushing. You may be able to push the shift lever on transmission into park so you can get it started. Make sure you have the wheels blocked and parking brake on so the vehicle does not roll. If you need help having this diagnosed, a certified technician from YourMechanic, can come to your car’s location to inspect the start problem and diagnose the shifting issue.