Many objects around you contain electromagnets. They are found in electric motors and loudspeakers. Very large and powerful electromagnets are used as lifting magnets in scrap yards to pick up, then drop, old cars and other scrap iron and steel.
Electric bell
Electric bells like the ones used in most schools also contain an electromagnet.
When the current flows through the circuit, the electromagnet makes a magnetic field.
The electromagnet attracts the springy metal arm.
The arm hits the gong, which makes a sound and the circuit is broken.
The electromagnet is turned off and the springy metal arm moves back.
The circuit is complete again.
The cycle repeats as long as the switch is closed. Check your understanding of this with the animation.