Dear student,
Electromagnets are used in the hospitals for in MRI machine which is used to screen the body parts to detect the dangerous diseases.
Electromagnet is used in the heavy industries to lift the metals with the magnetic properties and to separate them from other substances.
Regards