Electromagnets can be made using the equipment in this picture. When a current passes through a coil of wire it makes an electromagnet. Electromagnets are used in loudspeakers, earphones and generators
The two videos below show you how running a current through a straight and a coiled wire can make a magnetic field.