Hi,
Several possibilities about your problem. You didn't mention anything about how many miles are on the car, nor anything about when it was last tuned. Without that info, everything is a WAG.
I would check:
1) Head temp sensor & wiring
2) O2 sensor & wiring
3) Intake manifold ground wires (brown)
4) Fuel pressure at rail
5) Check for cracked distributor cap
This should keep you busy.