There are two causes of headaches, internal and external factors. The internal factors are dysfunction within the cervical (neck) spine, neurological conditions, vision problems, certain types of infections and hormonal changes. Whereas the external factors are all things that are outside your body. Smoking, poor diet, dehydration, allergies, caffeine, stress, alcohol and extended computer usage can all increase or predispose you to getting headaches.