Attach both ends of the wire to a battery (dry cells work best) and the nail will act like a magnet.
(dry cells; work best; ) (the nail; will act; like a magnet)
dry cells the nail
work best will act
like a magnet