on the outside, you have your stator. its made up on three sets of electromagnets which are each 120 degrees out of phase. as the current alternates, a different set of electromagnets are switched on. as you can imagine, as each electromagnet is switched on, it has the effect of a magnetic field...