Unplug it and call an electrician. Do not work on an electrical appliance unless you know exactly what you are doing and have made sure it is not plugged in. When babies start to crawl or walk, extra care has to be taken that they do not harm themselves. Children are naturally interested in cords and plugs. Here is some advice on how to make sure that your children are safe.
Children love playing with loose hanging wires.
Make sure that the cords of your iron and kettle are not left hanging where a child can pull them, thereby causing a hot iron or kettle to fall down and burn the child. If you have turned a heater on, watch your child carefully so that he does not stick his fingers through the grill and touch the hot bars of the heater. Do not let children play with electrical cords - they can chew on a live wire. Keep all unused plugs in the house covered with a safety plug. Babies love to stick their fingers into the plug holes.