I Hav had some pain by my ear too so I'm wondering if it could b my sinus.
There could be a number of reasons why your teeth hurt. I recommend you see you dentist to be diagnosed.
If you have any swelling or an abscess see a dentist as soon as possible as there is infection involved.