Making an electromagnet:
Then, connect the free ends of the wire to the torch cell. Now, electric current started flowing through the coil.
Bring some iron pins close to the iron nail.
We will observe that the iron pins get attracted towards the nail, showing that the nail has turned into an electromagnet.