The coil pack could be bad. More commonly the crankshaft sensor could be bad. When this sensor is bad the system cant tell where the cam location is and will no know when to send fire to the spark plugs.
It is located in the exhaust manifold Usually in the lower front of the engine it will have a grey wire coming from it to a plug. simply remove it and replace with a new one. Keep in mind if your O2 sensor is bad you will have a check engine light on.