Dear Student,
The iron piece is converted to magnet by passing current where no change is observed in terms of weight (or) energy of the iron only change of state is observed physically and the magnetic effect can also be reversed hence it is a physical change.
Regards.