1996 Ram 1500 5.9 4x4 surging?

OK so back to square one I ordered a TPS and an IAC brand new from Rock Auto. First thing it did was throw a check engine light and start surging badly also popping etc. I checked the code and it was the TPS sensor. I took it back off and put the old back on and cleared the code. The new TPS broke the little teeth off after installing it and it was brand new. Now it has the new IAC but now it is idling at like 1100 rpm in neutral. Runs fine but is idling too high? I should have just left it alone it was running pretty good. Any suggestions? O2 sensor?