Unsure what motor you have but, usual suspects are ignition module, which you can get checked for free (after you remove it) at Advance or NAPA, and, crank sensor can also cause this. If you are unsure where these are, get a Haynes manual or maybe try Autozone's online how to section for your car.