Try some basic maintenance first, take a look at the air filter, fuel filter, make sure spark plugs are good. While the car is running place your hand on the coil pack and you can feel it sending the electricity to the distributor. Make sure your bypass valve is running ok, when I had this issue it ended up being piston rings, so might as well check compression. I probably missed some stuff but start on the basics first, air fuel spark.