I assume from your ID you have a vintage bike with a 107 and a vintage dash over split tanks? The old VDO speedos do go bad and when they do you are left to find a very rare replacement. I have a 2000 Vintage Classic Millennium Edition and am currently running my third speedo at about 110,000 miles. I have found two used speedos to replace my burnt up original. anyway, you should check the connection of the signal sending wire in the five pin connector on the back of the speedo. I went an entire riding season in Michigan when my bike was a few years old and that was all it was when we went to troubleshoot. Another more easily repaired item would be the speed sensor - but it does not usually come and go, it normally works til it doesn't.
The VDO Teknics Speedos on the Vintage bikes are programmable (calibratable). There are instructions on line for these VDO speedos for a setting you can select with the button that allows you to measure a mile with a second device (smartphone with app or gps) and tell the speedo when you have traveled exactly a mile and it calibrates it for speed reading.