New member here. Bought a 02 ranger 4.0 SOHC 5spd ext cab 4wd while working out of town with known engine issues. Pickup came with a second 2003 donor pickup with good engine but automatic. Ended up doing heads, timing chains, oil pump, water pump, injectors, and all new seals on engine before swapping. Pickup starts and runs great until you shut it off and try to restart. Usually has to sit upwards of an hour then it will start. Replaced fuel pump, crank position sensor, cam position sensor, both temp sensor and switch, ecm and still same results. Give it a shot of either and it fires right up. Check engine light comes on with key but only sometimes flashes when cranking. Injectors have power but testing the ground pulse it seems intermittent. Electrical issues tend to get the better of me since I make a living shorting things out on purpose( I'm a welder). MAF sensor, IAC all seem to check out. I'm at a loss and would appreciate any insight. Thank you in advance. Pictures are my sons 98 we rebuilt tranny on then he promptly hit a deer. Made it a little less deer friendly