Paul,
Replacing the speedo drive pinion can be tricky. the lower end has to be perfectly aligned with its destination hole in the casing and the teeth must engage with the drive on the output shaft …… and then it has to be turned for the teeth to remain engaged as it drops in. It is trial and error – usually followed by even more errors before it goes in. You need to be patient and persistant.
B…….