As a test for that (bad wiring) you can disconnect the original wire from both ends, and run a fresh temporary wire from the fused end to the solenoid. If that works, just make it more permanent. That at least buys you more time to assess whether the rest of the wiring is in need of replacement (probably) as Goteborg Vapenfabrik suggests.
See this post:
1984 rotting cables