Thanks for writing to health care magic forum.
Since you are experiencing pain around only one side of ear along with headache,vertigo,i would suggest you to get a clinical check to rule out the possibility of maxillary sinusitis
If the sinus infection
does not exists,get a clinical check up with your dentist
to rule the cause of occurrence of pericoronitis due to impacted wisdom tooth
Usually in such cases,ciprofloxacin along with analgesics are prescribed.
Hope you get well soon.