Pain management relies heavily on anesthesiologists. As their name suggests, a physician trained in anesthesiology administers anesthesia during surgical procedures. Anesthesia is given before (most) surgeries to alleviate pain or put the patient to sleep.
Medical doctors specializing in pain management provide their patients with ongoing treatment for chronic conditions.