Electricity flows through a pathway, connecting a power source to a light bulb, resulting in the generation of light.