Complicated. And not necessarily the same from motor to motor.
The one I have on my desk has 12 magnets in the bell and 9 poles on the armature. Having fewer armature poles than magnets makes it a bit harder to think about, but it can be done. The magnets are arranged N, S, N, S, etc., so the magnetic field sort of loops in and out and in and out of those magnets. The windings are arranged so that the pole pieces on the armature are wound with winding A, then B, then C, then A again, etc.
I don't have any pictures, but basically the way it works is that in operation the ESC will put power on two out of the three wires to the motor; this energizes one coil fully and puts half voltage on the other two, and gives the armature the appearance of having six magnetic poles. These will try to line up with six of the 12 magnets in the bell, and the motor will turn. The ESC uses the voltage present on the remaining wire to decide what to next, and based on that it switches what power is going where on the three motor wires.
I don't know if, without pictures, this is going to get you very far. I have a very clear picture of how this works, but it's in my head. Here, let me think it very hard at you . . . -- does that help? I looked for an explanation on the web and didn't find anything
.
It's easy to tell what the magnet orientation is if you can get access to the bell and if you have a spare magnet or two (like a hatch magnet or a canopy magnet). It's also easy to look at the armature and count poles -- and the armature poles are always wound A, B, C, etc.