Explanation :
The two pieces of iron attract each other due to the presence of magnetic force.
We know that the two like poles repels and two unlike poles repels each other. A piece of iron when brought near another piece, they attract each other.
The space around a piece of iron is called the magnetic field. The direction of the magnetic field shows the presence of magnetic force.