Every socket has a piece of brass at the bottom, that makes contact with the base of the light bulb. Sometimes, if this brass piece is jammed in, it fails to make proper contact. Turn off the light switch and unplug the light bulb. Then, using needle-nose pliers, pull the brass piece outwards. Plug the bulb in and see if the problem is solved.