Check the Pinion: If the speedometer isn't working even after a cable change, the issue might be the speedometer pinion/gear located in the front wheel hub. It is a small plastic gear that can wear out.
Routing: When installing, ensure the cable follows the original path. Avoid sharp bends, as these cause the inner wire to snap prematurely.
Lubrication: Pre-lubricating the inner wire with a bit of grease or oil before sliding it into the sleeve can significantly extend its life.