Your vet should have been able to see the ear drum after the cleaning and determined if it was ruptured or not.
It is possible she has a middle ear infection or a mass and it might be inflammation from the perisistent infection is pushing on the nerves around her head.
If your vet says the eardrum is not ruptured a medication I've had good luck with for persistent infections is Zymox with cortisone.
You can read about it here
and many pet supply stores, vets, and online sources carry it.
Persistent ear infection can be a sign of allergies.
You can read about allergies in dogs here
Dogs can develop allergies to foods, and to inhaled items, and contact allergens such as rug cleaners, cedar beds, or chemicals including lawn chemicals or even flea bites.
You might want to try a different dog food that has no ingredients the same as what you feed now. Diets of Fish and Potato, venison, or rabbit etc. where the protein source is new and there are no grains in the food can work for many dogs for example. Another option is the hypoallergenic diet from your vet Hills ZD. Changing food does no good if you feed the same ingredients.
If this is an inhalant allergy you may find using a HEPA air filter in the room the dog uses most and wiping the dog down with a damp towel when it comes in helps reduce allergen exposure.
Dogs can have low thyroid level issues and that can trigger skin allergies including ear problems. The vet can check for that with a blood test.
Persistent ear infections can happen due to the infecting agent becoming antiboitic resistant and you can read about that here
and another remedy studied here
Another possibility for jaw pain is an infection behind the eye area and this might have been triggered by ear infection. You can read about retrobulbar abscess here
If it is a mass in the ear then a veterinary surgical expert would be a good choice as that is a tricky area to do surgery on.
One more thing to consider is beagle pain which you can read about here
Hope this helps you!