Pick the right core and turn on the battery to lift the metal bolts: an electromagnet needs battery current and a ferromagnetic core such as iron.