There's a little wheel opposite the plug end that makes the contact inside the light, does it move, is it corroded? It has three positions, middle is off, one side is on, the other is switched on (when door is open).
The wiring is already there. Lights look like this.