Look under the car and verify the cable is intact. Unplug the cable from the trans and see if the teeth on the plastic gear are not stripped. Spin them with your fingers and have someone see if your speedo works. Finally look inside the hole in the trans with a flashlight and make sure the speedo drive gear is centered in the hole.
More the likely, the driven gear stripped...esp if you have a white 23-tooth