When the electricity is off, the filament cools down to its original physical state. This physical process repeats every time the light is turned on and off. However, if the bulb is cracked and air is introduced, the oxygen in the air reacts with the tungsten filament which then undergoes a chemical change.