If you place the wire near a permanent magnet, this temporary magnetic field interacts with the permanent magnet field. You will know that two magnets placed near one another either attract or repel. In the same way, the temporary magnetism around the wire attracts or repels the permanent magnetism from the magnet, and that is what causes the wire to jump.
Now we have better ideas about how electricity works, we tend to talk about current as a flow of electrons, from negative to positive, in the opposite direction to the conventional current. When you are trying to figure out the rotation of a motor or a generator, be sure to remember that current means conventional current and not electron flow.
As you might suspect, when you reverse the current in an alternating current motor, it takes time for those atoms to get going in the opposite direction. And the amount of time is not necessarily the same as the time it took to get the herd moving properly in the first place.
The PWM Drive (pulse-width modulated drive) to motor power conductors are typically the most intense noise source in a system. Proper implementation of shielding, grounding, splicing, and treatment of excess cable is essential to reducing noise in your system.