What all codes did you get? There are actually three sensors on your truck that could affect the speedometer. Input and output speed sensors in the transmission and the speed sensor in the rear differential. Usually it is the one in the differential.
Which did you replace?
Replace the sensor in the rear differential. It is mounted in the center top. I see this code all the time with no speedometer reading and it almost always turns out to be the differential sensor.
You are welcome. let me know if you have any trouble. You can come back to this question and reply. Once I see it on my list I can get back to you.