If the cable is ok and the speedo works this leaves the other end of the cable, ie gearbox end, sometimes the teeth on the drive pinion wear, so need to look at this, whilst there spin the cable with your fingers of a drill and you will see the speedo register, if it doesn't spin the other way, going the wrong way will cause no damage.
tabetha