Could be either these problems listed here below:

1. Bad o2 sensor.
2. Vacuum leak, bent/damaged valves, bad spark plugs.
3. Ignition Coil has trouble.

After you give it gas, does it turn off ?

If it does, you either got your IAT sensor and your MAP Sensor on the other way around, try switching those around. Their located around the left side of the intake manifold location.