From the outside of the case will be the 2 screws holding in the switch, check the connection and repair it if possible, If you cant then you will need a replacement.
Those switches are industrial components rated for 100s of thousands of operations. I'd check the wires and connectors - make sure they're not broken and make sure they're not touching anything.