Sad to say this bit is beyond my knowledge, the Rave workshop manual and wiring diagrams are available on here (click community on top bar, then downloads) you may then be able to trace it back.
Presumably it all worked prior to the engine change so why not now, have you checked the fuse? the wiring diagram will show what one because off the top of my head I don't know.