Changed ignition switch but didnt help

It ran fine then i parked it for 5 to 10 minuts and when i got back in it started hard and would stall if i took my foot of the gas. It has oil but i hear a knocking sound. Changed map sensor and nothing.

I know that it's not wise, but when i do a burnout, breakstand whatever you want to call it. The back tires will break lose or seem to break loose. When you hold the gas and let the tires gain momentum and build up smoke the tires will spin, both seem to do so. About five seconds into it the whole back end will begin to kick out and scoot over about five feet or so. It will then countinue to spin the wheels and when you let off the brakes to do the burnout and get going to leave your mark only the driver side will leave a tire mark while the passenger side will have no mark. I've heard of a few other guys that have the same problem I've even seen it in some challengers and chargers. So i'm wondering if it's an axle problem or if it's my tires or if it's my brakes or what. Again I know it's not smart to do burnouts.

I have a 2004 dodge ram 1500 4.7 eng. starts if i put fuel in the throttle body but wont run for long what could be causing this? the fuel rail has fuel in it cause i checked the little pressure valve and gas sprays out i can here the fuel pump turn every time in turn the ignition to the on position.

I have a 04 dodge ram 5.7 hemi. The check engine light is on. I took to the parts store and had them read the codes. It came back as bad o2 and bad catalyst system. I then took to my local shop and had them do tests. They said bank 1 upstream o2 sensor is not sweeping. I've looked around and think my pcm needs reflashed? Could that fix my issue? The truck has no power check engine light is on and if i give it hard acceleration it won't shift. Thanks for any help.