Yes, anxiety can cause headaches. You may want to see your Dr about your ears though because it sounds like you may have an ear infection. While you're there talk to your Dr about the anxiety you've been having.
thankyou for the comments back! this has really helped and put my mind at rest. i am not thinking about it as much and head pain has just about gone!
I was your age when I started with the panic and anxiety as well. Your anxiety is really stressing you out which will give you those headaches, trust me, I lived with them for years and years. You need to get that anxiety under control and I bet you see a decrease in the head pain too. Do you have a therapist you can speak with?
Are you in a stressful situation as this happens to me also. Stress will keep you neck tight and give you a headache also. All the muscles are tight.