A headache can affect any part of the head, and pain may be present in one or several locations. Headaches can cause various types of pain, and classifying the pain can help a doctor reach a diagnosis.