check for any corrosion on the contacts in the socket. and a bit of di electrical grease can help too.

if the socket is clean test for power. you can do this with a 2 dollar 12 volt test light.

also check the wires to the socket, a broken or cracked wire can make it fail to work as well.