Why does a piece of iron behave like a temporary magnet when placed

in a magnetic field?

SOLUTION:
Iron consists of many small magnetic domains which all line up and temporarily behave like an ordinary magnet when iron is placed in an external magnetic field.

IS this right?

yes.