Get a metal object such as a longish nail. Wrap a wire round and round and round, so it's coiled around it from one end to the other. Start at the bottom and work your way up. Put a current through the wire. I'm pretty sure that's how you make an electro magnet.