Iron is a better material than steel for making an electromagnet for two reasons:
(a) The magnetic force in iron is greater than that in steel.
(b) When the current is switched off, the objects held by iron are released. But in case of steel, the objects remain attached to the steel even after switching off the current.