Is it even connecting to the computer and can you click?
If so try to replace the [link|https://www.ebay.com/itm/395235127202|rotary encoder|new_window=true] (this is just one I saw on eBay for ~$13 USD) use [guide|163123|this guide|new_window=true] but instead put the scroll wheel into the new sensor and reattach the cable
What about the wheel itself though, is it sticky at all and are there still ridges in the wheel? The fix might be to either clean the wheel or replace it(the wheel).
Also a free fix might be to just plug it into the computer but I don't really see that working