changed motor new motor back fires & lacks power on 1997 Dodge Caravan

I changed motor from a right off that ran great now it runs ruogh and back fires & pops. hear a intermintent click noise from tranny side that makes it pop & back fire. it realy lacks power. computer scan comes up p0118. used all sensors from right off van that ran good before.

2 answers
This is a code for your engine coolant temp sensor, which can make an engine run very bad if it was broken or the wiring wasn't right. Is the radiator all topped off?
you either have it out of time or some wires crossed