There is a good chance it is not the cable. These symptoms are consistent with the speedo drive gear slipping on the transfer case output shaft. To fix this, disconnect the rear prop shaft and tighten the big nut on the end of the shaft.
The non-functioning odometer is likely to be the odometer itself, probably with a seized and stripped gear.
John

