Just like any other type of simple machine, light switches have several moving parts. Over time, they wear down. Connections can become loose the power supply wire (black wire) connects the two terminals, allowing electricity to flow through to the light.