Encoders are used for measuring the angle (aka distance) on motors, but on certain types of brushless AC motors, they are used as well to control commutation. Adding an encoder to a vector drive can improve low speed operation and decrease coging. AC servo motors (permanent magnet types) also use encoders for precision movements and commutation.
paul