The law of conservation of energy states that mass cannot be created or destroyed.
When you plug in a lamp that causes electrical energy. That energy goes to the bulb and creates light energy. The light from the bulb sends off heat and creates heat energy.