you dont say how old your car is,the speedo in older cars where attached to the gear box with a long cable,this rotated in a outer sheath,this some times became worn or dry and gave the fault that you have,newer speedos are electronic.
mm
January 2011