Check engine light on now car is jerking and having rattling noise under the hood?

I have a 03 ford explorer eddie Bauer it has 105k miles on it. Recently it started to rattle under the hood and jerks. What could be wrong?

Spark plug failure and/or HT leads shorting out. Lift the hood after dark and see if you can see sparks.

Ever think of taking it to the dealer where you bought it and have one of their mechanics check it out?