In addition to what Jen said, check your diet for any new additives or foods in your diet. Caffeine withdrawal can also cause headaches. When did the headaches start?
Here is a list of causes of exertional headaches: www.mayoclinic.com/health/exercise-headach
Most of those can only be diagnosed by a specialist, not a primary doc.