1999 Ford Ranger Speedometer not working?

I own a 1999 ford ranger, my speedometer no longer works and neither does the odometer. I have replaced the Speed sensor on the rear dif, without resolution.
The truck is Rwd and completely stock
This is my first vehicle, so i would greatly appreciate a fix as soon as possible

Added (1). The transmission is manual

How about changing the speed sensor on the transmission.

Could be a stuck stepper motor inside of the instrument cluster.

There's a chance the speedometer cable can come loose in the transmission extension on 2WD and the transfer case on 4WD versions which can cause the speedometer to stop working along with the odometer. Other gauges can continue working which they aren't affected by the loose cable.