Magnets exert magnetic fields that flow from their north to south poles. Magnetic field lines indicate attraction when they curve towards each other. Motors use magnetic fields to convert electric energy into kinetic energy by forcing current-carrying wires to spin in loops. The aurora occurs when charged particles from the sun collide with atoms in Earth's atmosphere after spiraling along the planet's magnetic field lines towards the magnetic poles.