Pull the speedo and twirl the speedo drive , watch to see the needle move , if thats ok , and the cable moves when you twirl it from each end then the square drive on the end of the speedo cable may not be engaging correctly.
Also possible is speedo drive gear on gearbox output shaft is slipping so no drive to cable.