I agree that replacing them guarantees nearly 100% success.
Having said that, here are the alternatives that have worked for me in cases where I didn’t replace the socket.
If the light is out, and come on when the barrel is moved, I use a soldering gun to solder from the bracket to the barrel. Lots of heat makes quick work of this.
If the light comes on when a small screwdriver is used to bridge the solder tab to the tip, I will apply CLR to the plunger, inside and out. That covers the oxidation case.
After that, I replace.
Dave