when live wire comes in contact with the earth wire, then the insulation of wires is damaged or there is a fault in the appliance. in such a situation, a complete circuit would have been made from your mains supply to the ground (earth) - a shock or fire would be highly