Switch is the 2 pins side by side, encoder operation is the 3 pins (ususally center is ground), the 2 large legs ground/support the chassis.
The ones which don’t work, one pin may have lost the soldering pad and are not connected to the PCB circuit, or there is a cold solder joint, so it’s not electrically connected. If even the ground pin is not properly making connection there will be no response. If you look closely at one which does not work, you may be able to see which pin is failing.
usually like this (generalization):
I can also see some of the chassis ground (legs) look like they are either not at all connected, or poorly connected. They seem to have dropped the soldering pads on those but I’m not sure if that’s enough to kill the encoder entirely with the elektron design, it’s not good though.
This one for example, the support legs look like they aren’t connected:
I think this is the far right side, lower row. Does this encoder work normally or is this one with a problem?