Headache and back pain can happen together due to injuries like whiplash, slouching posture, infections, or conditions like migraine, arthritis, irritable bowel syndrome (IBS), and fibromyalgia.