when a current-carrying wire (or any other conductor) is put between magnetic poles, the magnetic feild around the wire interacts with the magnetic feild its placed in. This causes the magnet and the conductor to exert a force on eachother, Causing the wire to move