Electricity flowing through a wire has the ability to line up the groups of atoms in metals, creating a magnetic field, and turning the metal into an electromagnet.
(Electricity flowing through a wire; has; the ability to line up the groups of atoms in metals)
Electricity flowing through a wire
has
the ability to line up the groups of atoms in metals