Your odometer is probably fine. It works on a simple gear driven system. So if it works at all, there's not much to go wrong. On the other hand, the speedometer works by a magnetic field produced by spinning magnets. These fail, and need repairing or replacement. So much so that reproductions are available. Since yours has made that noise, I suspect it's badly wounded or terminal.