Hello!
From what you have described it seems like you have caries that has spread till pulp which is causing you pain in ear tooth and head.
But still needs to be checked clinically.
Next Steps
As of now you can take medicines but I ll have to first check and know your medical history before prescribing any medicines.
Health Tips
Show your teeth to a dentist soon