Ear pain lasting for more then six months is unlikely to be primary ear problem. Sometimes pain in other area such as teeth, temporo Mandibular joint, tonsils can get referred to ear which is known as referred otalgia. In your case it seems to be teeth.
Next Steps
Consult nearby dentist for treatment of teeth pain which may cure your ear pain also