I'd test the wiring before installing a new speedometer, make sure you have power to and from the VSS mounted on the back of the transfer case.
Also make sure you installed the VSS correctly, once inserted into the tailshaft housing you need to twist it to the correct position for the speedo gear to engage the shaft.