An electromagnet is
a soft metal core made into a magnet by the passage of electric current through a coil surrounding it.
You can make it from copper wire, a battery, a nail, and paper clips. You connect the nail and battery with the wire and then let it touch the paper clips.