As has been pointed out...one of the main causes of headaches, particularly in warm weather, is dehydration.
You wouldn't run a car with hardly any water in the radiator, especially in warm weather...the same principle applies. Apart from the noticeable physiological factors such as headaches, your muscles will overheat causing them to be less effective and more prone to injury.