In a sensored motor there are 3 hall sensors in a motor positioned 60 degrees apart. A small voltage is created on the output of each hall sensor that is sent to the controller when the magnetic field changes by the motor rotating.
There are 3 sets of windings in the motor (green, blue, yellow)...