I have a light switch that controls the electrical sockets in the wall. I had an existing electrical box in the ceiling and I put a light up but it would not work. So I put up a ceiling fan thinking it would work because of the pull string. Well nothing is working and I don't know what I should switch out to get the ceiling fan to work. Can a light switch that that controls the electrical socket work for the ceiling fixture as well?