How can CBD oil help with pain management and inflammation in the body?

How can CBD oil help with pain management and inflammation in the body?