solenoid

noun

1.
a coil of wire around an iron core; becomes a magnet when current passes through the coil