Like an ordinary magnet, an electromagnet pulls or attracts metal towards it.
(an electromagnet; pulls; ) (an electromagnet; attracts; metal; towards it)
an electromagnet an electromagnet
pulls attracts
metal towards it