Pathophysiology and medical management of pain