That is a very nice stepside!! Cool color
Not one I worked on unless it used to be white

The only other stepside i did was blue and solid axle
The passenger side wiring plug into the transmission is the bulk head connector
As you are aware it carries power and controls to the internal solenoids
Very odd that after fixing in the tissues started.
I suggest we re visit that connector
There are two 94-97 and then 98+
The earlier ones had more wires
We can identify the year of your trans by which plug you have
Now upstream of that white bulkhead connector should be a big square plug this will have all the trans wiring in it as well as the oxygen sensors… I would go back and inspect all of this because somehow you lost your od cancel and your speed sensor
Zoom out on the engine bay pics so we can see what 5.0 you have. Looks to be gt40p with external egr but would be nice to see for sure. I can usually tell a lot by the wiring from a few engine bay pics
Transfer case pics needed as well because:
All 5.0 explorers are rwd or awd, no selectable 4wd.
Only a few ford t cases will Bolt up and fit the Ranger
In order to run the Ranger t case the 4r70w would have been modified with a very expensive advance adapters tailhousing ($6-800) and output shaft, this requires the entire trans to be disassembled and usually rebuilt (1800-2500$) and now you would have a custom 4r70w so you can’t just go get another one (I’m in same boat)
Isnyour 4wd on a switch or on the floor ( manual)
So many questions! Hopefully we can get this sucker up and running
So… the wiring on the side of the trans. Of three power wires were combined on purpose this is a big deal, that would mean the earlier 4r70w wiring was upgraded to use the 98+’solenoids
Having a short in those wires can send a short straight to the pcm… the power feeds from pcm to trans solenoids are not fuse protected
As you can see I have a lot of questions! But if anyone can help you it will be me and the dudes on this forum