Welcome to TRS
Good page to Bookmark here:
https://www.therangerstation.com/tech_library/index.shtml
Select Engines & Fuel
Then look for the 4.0l Conversion articles, there are several
What year 4.0l engine and computer with wiring harness?
1990-1994 would be more compatible with your 1987 B2
These years have a separate spark module, EDIS module, its what starts spark and sends the spark pulse to computer to start injectors
EDIS module was mounted to rad support on Rangers
The fuel pump relay turns on the fuel pump power but only runs it for 2 seconds with key on, a safety thing, so fuel pump should NOT have power when engine is not running
You can cycle key off and on and fuel pump should run for 2 seconds each time
Computer will turn on fuel pump relay full time when engine RPMs are above 400
Cranking speed of engine is 200 RPMs, so engine must start before pump is on full time
Assuming 1990-1994 computer and OBD1
CEL(check engine light), do you have one hooked up?
If not then I would use a test light to see if computer is booting up and then "seeing" the signal from the EDIS module
Look here:
https://www.therangerstation.com/tech_library/OBD_I.shtml
Find the OBD1 connector on engine bay wiring harness
Connect a 12v light(or volt meter) to Battery positive, and then ground it to STO port on OBD connector, as shown, DO NOT install jumper, thats to read codes
Turn on the key, you should see the light come on or 12v on meter, this means computer is booting up, no volts means computer is missing 12volts or grounds, so not powering up
If light comes on then crank engine over, light should go OFF while cranking, that means computer is "seeing" a timing pulse from EDIS module
Also, as an aside, in the diagram the Fuel Pump slot is labeled that slot is the GROUND for the fuel pump relay
With Key ON you should see 12v at that slot, its 12v passing thru the relay
Ground that slot and fuel pump relay will close and fuel pump should be ON full time, well until Key OFF then it will shut off