Try your 2 wire proximity with Blue to GND and Brown to the input.
One problem is the voltage, the inputs are probably 5v but could be 12v, your switch is 6v minimum.
I think 3 wire is better but you did not connect the 3 wire switch correctly, you need brown to +ve(12v), blue to -ve(GND), black to input.