All the electromagnetic motors, and that includes the types mentioned here derive the torque from the vector product of the interacting fields.
How is torque determined?
from the vector product of the interacting fields