I believe your speedo is all electronic, it gets a signal from the transmission and computer. I'd check all wire connections to instrument cluster. Unclip, spray with contact cleaner and re-connect, including connections on the transmission.
If you need a new speedometer/odometer, check with a Ford dealer before removing old one to find out what will need to be done to keep miles honest.