How a light socket works is simple. Electricity flows through the hot wire into the brass tab in the center and into the light bulb. Electricity then flows through the bulb and through the threaded base of the bulb into the threaded base of the socket and out through the return wire.