We came to know that earth has a magnetic field. How is it possible? Is it important for the earth?
The magnetic field is the invisible area of magnetic force around a magnet that causes it to attract or repel other magnets or magnetic materials.
We know that earth has a solid iron core. So how can iron create magnetic field?
What is stored in the battery? What is transferred to the nail through wire?
It is because when electrical charges, like electrons, move through a wire, they create a magnetic field around the wire. This magnetic field can attract or repel other magnetic objects.