Psychological and Physical Stress: The muscles of your neck, shoulders, scalp, and jaw contract due to stress, depression, and anxiety, causing headache. Sometimes, performing a particular activity that causes your head to remain in one position like looking at the computer for a long time, sleeping in an odd position, grinding or clenching your jaw, traveling, sitting or sleeping in conditions of low temperature, can lead to headaches.