Hi,
Your question is much too global to be answered in a forum.
You are not the first one who wants to do motor control, instead it is widely used.
Thus there are a lot of documents in the internet. A lot of tutorials and tecnical discussions.
Almost every motor manufacturer and every motor controller IC manufacturer provides reliable and detailed informations.
To learn the basics I recommend to read through them. A forum can't replace school or reading.
But you are welcome here to ask more detailed questions. Best if you then give (links to) documents you refer to.
Show the circuit you want to discuss about, show your own effort.
Then you will get fast and focussed response from a lot of members here.
Klaus
Did you do a forum search? Or at least tried the liks in the box "similar threads" below?