If your car's not running right, you need to diagnose the problem. The problem cannot be the speedometer itself, but might be affected by the Vehicle Speed Sensor (VSS) that electrically drives the speedometer readings. The VSS is mounted on your transmission.
http://www.autozone.com/az/cds/en_us/0900823d/80/05/11/ec/0900823d800511ec/repairInfoPages.htm