My car is having problems staying on. When driving at first it seems like after it heats up after like 10 minutes it will jerk for a second and then rpm will go to zero then once you go to stop at times the car will turn off and it won't crank back up for like 30 minutes. Now I am lucky to get it to start at all and when it does start the engine sounds rough and it's kind of making this clicking noise.I thought at first maybe it was the fuel pump but someone assured me that can't be it. I have done did all my coils and spark plugs/wires. I am thinking about getting help and replacing my fuel pump, timing belt and 02 sensor because I really don't have the money to take it to a mechanic so trying to learn how to do the stuff myself and watch videos on it all. Is there any help anyone could give me? Thanks in advance!
As Hari Ganti mentioned above, if money is tight and you can safely drive there, you can get your check engine codes read for free at just about any parts store. This is a great place to start (ask them to write the code numbers down for you too, so you can research them on your own).
Based on the information you provided I do not think it's a fuel pump or the O2 sensor.
When, the engine starts misbehaving does it physically look like it's jumping or shaking? If so, that may indicate it's a bad crankshaft position sensor. Based on your description, I think it could be the crank sensor. If that's the cause of your issues, any parts store should be able to diagnose the issue with an OBD scanner and get you the part. I would suggest you at least look into the crank sensor before you change out that fuel pump.