Electrical Questions? Ask an Electrician Online.
Welcome. My name is ***** ***** would be glad to assist.
Are the white and black wires , the only wires in the entire light box?
Was any other work performed on the electrical such as switch changes?
Let me know and we can continue,
Apparently the switch has failed, as your color to color wiring is correct.
I would remove the switch cover with power off, then take only one wire off the switch and see if the light then does not operate when power restored.
That will prove or disprove the switch as being stuck in the on position due to contacts inside the switch.
If there is more than one switch, a 3 way setup, it could be either one, so post back in that situation and we can further troubleshoot the issue.
If you have a 2 lead voltage tester, let me know and can post how to test the switch itself
But, with only 2 wires, it will be in the switch where the problem is located.
Keep me posted,
One light socket working or not on a multiple socket fixture is normally a loose connection at the fixture or the socket has a loose connection where the wires are riveted to the socket.
The switch would not affect this situation.
You might tap on the switch a few times and see if you can make the contacts open, sometimes this will cure the issue for a while, but it usually comes back because the internal contacts are corroded inside and will weld together again later.
Yes, the problem is with the switch and why the posting has what to do and then try to correct the issue before getting a replacement