Why would the speedometer stop working on your 1989 Ford F-150?
The answer is the Vehicle Speed Sensor, or VSS.
A 1989 Ford F-150 uses a mechanical speedometer rather than an electronic one, so the only thing that's stopping it from working is the speedometer cable, driven by the VSS on the vehicle transmission.