hmm replacement engine....Is it the correct engine?there are many vehicles with very simular engines with subtle differences. are you using your original injector pump and wiring loom?
Was the engine seen running prior to purchase? If you havent seen it run, assume it could be dud, check compression to start as its relitively quick n easy to do. you can rent compression testers from some autofactors. check ALL electrical connections including the earth strap to the inlet manifold!!
spud
February 2016