The electromagnet is placed between the poles 
When a power current flows through a loop or coil of wire, positioned between your two poles of an electromagnet, the electromagnet exerts a magnetic force on the wire and causes it to rotate. The rotation of the wire starts the motor. As the wire rotates, the electric current changes directions.
