What causes heaaches?

Many possibilties. Headaches can be caused by too many things to list here. A carefuly history and exam can help narrow down the causes.