we know that a current carrying wire creates magnetic field around it. inside this magnetic field, when a magnet comes, the magnet experience magnetic force. This same thing happen in motor which is known as motor effect.
the electric current running through coil creates magnetic field which exerts the force on the permanent magnet.
Mass of the Jupiter is 319 times more than that of the earth but its acceleration due to gravity is only 2.5 times more than the earth because the radius of the Jupiter is about 11 times greater than the earth.