Welcome to Healthcare Magic
You could be having middle ear infection
like CSOM which has involved mastoid behind the ear. Do not delay. Consult ENT Doctor immediately and get examined for perforation of your ear drum and infection and get proper antibiotics and pain killers. You can take over the counter pain killer under medical supervision for pain relief but you must go to ENT Doctor immediately.