This is a basic question between two fundamental parts of motion control (position sensor and motor design). If you're to lazy to search with Google, Ask or even look at Wikipedia, I don't think that you will be able to understand an accurate answer.
__________________
"Don't disturb my circles." translation of Archimedes last words