thanks for sharing your concern.
after reading your history i would suggest you to visit your dentist
and get the concerned tooth treated.
it shows you have deep caries on left side of your jaw,probably in the upper arch.this is causing you an immense pain and discomfort.
it is also recommended to take an OPG xray to see how many teeth are actually affected in that arch.
as far as your headache is concerned,i think it will subside after your dental treatment.presently you are having referred pain
because of toothache.
even, after completion of dental treatment,headache remains ,then you can definitely visit a neurologist
,but meanwhile i would suggest you to wait .
for your pain you can take tab combiflam
500 mg every six hourly for three days,meanwhile please make an appointment with your dentist.
hope it helps .