You cocked one thing, go back and check those other things closely again?
Wires both ends, are the various sensors swapped over, or came on the new engine? Need to prove them out that sending units are doing their proper job.
Wires been damaged in the chaos?
Ground block somewhere not grounded?
Happy coaching!
Buswarrior