What kind of car do you have? It makes a difference.
Is it a car with a digital speedometer or a car with an analog cable driven speedometer with a needle?
If it's a digital speedometer it could be a bad connection to your transmission or could be something in the cars computer causing the mph to be stuck.
If it's cable driven needle speedometer then it could be the speedometer cable coming loose in the transmission or could also be the speedometer on the dash itself.