When the electric current passes through an electric bulb, the filament of the bulb gets heated to a high temperature due to the heating effect of current. So, the bulbs starts to glow. Sometimes the current is too weak and filament of bulb does not get heat sufficiently and bulb does not glow.