Scan for OBDII codes (Autozone or buy a scan tool at Sears or auto parts store, the cheapest Actron will work), first, and look for any dubious wiring. Please post the codes. You could have a bad ignition coil or crank/ cam sensor.