123's are notorious for slipping odometers, but the speedo continues to work. My guess is you have a broken cable, which drives both. You would have to remove the cluster by pushing it out from behind and then disassembling the lights and speedo cable. Replacing the cable is an easy dyi project. Use the search, there are lots of posts, especially in the diesel form.
1982 240D Manual - Sold