For most pain, the best treatment is to stop the damage that makes the pain. If the ankle is sprained, doctors tell the person not to walk on it. They tell them to put ice on it. This helps the injury stop. For an ulcer in the stomach, doctors stop the acid made in the stomach. This helps the ulcer to heal.