Welcome to TRS
1995 Ranger cluster won't work in any other year Ranger as is, not sure about 1995 Explorer cluster
They have same wires but pinned to different connectors
1998 thru 2000 Rangers have an odd speed setup
These years use the rear axle ABS sensor for a base speed signal
That sensor has a 20,000PPM(pulse per mile) signalthat is sent to ABS module directly, but its signal tapped by the GEM Module(behind the radio)
The GEM converts the 20,000ppm down to 8,000ppm, that is the Ford standard for computer, cruise and speedometer pulses
So first question, does the ABS light on the dash work?
Does it come on and then go off with key on, that's a Bulb Test
If ABS light works and it doesn't come on when driving then the rear axle ABS sensor is OK
So the problem can be wiring or the GEM
The computer will set P0500 code if it doesn't have a good speed signal from GEM, and that should turn on the CEL(check engine light)
And since you have an automatic it would also shift differently with no speed signal at computer
So if shifting seems OK then problem is most likely at the cluster not the GEM
Pin 1 on center connector on the cluster is Speed signal wire grey with black stripe in 1996-2003 Ranger cluster
In a 1995 Ranger cluster pin 12 is the speed signal on same connector so 1995 cluster speedometer wouldn't work at all with 1998 wiring
Just FYI, the speedometer and odometer each have their own electric motor
But they share the one speed signal wire, so put back in 1998 cluster and see if odometer stays working when speedometer stops working, if odometer stays working then problem is in the speedometer circuit in the cluster not a problem with speed signal from the GEM