coil the insulated wire around the nail then touch the wire to the end of the battery to turn on the electromagnet ! :)
Bill Nye the Science Guy Demonstrates How an Electromagnet Works : https://scratch.mit.edu/discuss/youtube/sFC7-WVNUP8 inspired by the magnets studio : https://scratch.mit.edu/studios/29754588/ flattened paperclip effect inspired by @l3oom's 3D paper effect : https://scratch.mit.edu/projects/534529231/ color-picker block from @qucchia