Have a Car Question? Ask a Mechanic Online.
You have either a bad ignition coil, ignition module, fuel pump relay, distributor cap and or rotor.
It doesn't hur to start with a normal tune up (spark plugs/cables, fuel filter, distributor cap/rotor; unless you have recently) then try ignition coil which shouldn't be expensive and also the coil and module can be tested at an autoparts like AutoZone.
If it is fuel injected and or electronic ignition there's a chance of bad crankshaft position sensor.