An electromagnet is made by wrapping many coils of copper wire round an iron bar. When electricity is send along the coiled wires, the iron bar becomes magnetised until the electricity is switched off.
Lots of things - your car has a engine that is used as a generator (your alternator). Cell phones that vibrate have a small electric motor with an uneven weight on the rotor which causes vibration as it spins. Fans (heater, attic, computer, etc.), many different toys - remote control cars, some airplanes, etc. Electric golf carts and cars. The list goes on and on.
It is made of a "soft" metal such is iron because it is magnetised easily and demagnetised easily.Electromagnets are said to be temporary magnets because their magnetism can be controlled ie. attraction or repulsion force can be controlled by switching on and off the current which passes through it. That is, electromagnet can be turned on and off as any other electrical device.If some "harder" metal such as steel is used than it can cause the problem because steel is hardly magnetised and it also demagnetises hardly, so it is not efficient to use.Note! Only ferro-magnetics (materials which can be attracted by a magnet) can be used as a core. Those are iron, cobalt, nickel and steel. But among these iron is almost always used because it is the most suitable core.