Why do i keep getting cylinder 2 misfire code as well as random power loss

I had plugs and wires changed to try clear code. Car seemed to do some better but while trying to go up a steep hill car started stuttering and jerking.power went out of car and check engine light started blinking fast.after let the car sit for bout 45mins car started running fine again and light stopped flashing but remained on. Code read cylinder2 misfire again. Anyone got any idea whats happening?

Please give us some info as to make, model, and year of the vehicle as well as the OBD II code you are seeing.