I suggest testing things first.....then replacing......
Take the speedo out, move the truck a bit and see is the speedo end of the cable it turning. If not trace back down the cables to see where drive s lost.
Stick something in the input to the speedo and spin it, does the needle move?
If something IS broken, as suggested, look at the going with an electronic VDO before spending money. They are much nicer.