If your speed sensor was broken, your cruise control wouldn't work. I've experienced this recently. If your speedometer isn't working, I would look upstream toward the instrument panel. If the gear was not working, the speed sensor wouldn't work, either.
------------------
351W 89 Mustang GT Convertible