It might be due to cavity in your upper last teeth .sometimes when infection spreads you will experience pain in both the jaws,ear,neck region and also head
Next Steps
1.consult your dentist and do a clinical examination to know exact cause
2.start with painkillers like Combiflam twice daily to relieve pain
Health Tips
if based in Bangalore can decide treatment with personal chat