Can an infection in lower teeth cause ear and upper head to hurt?

Very common. Pain originating in the lower jaw or teeth may be felt in the ear with persistent, severe head pain and tenderness, usually in your temple area. See your dentist for evaluation, x-rays and treatment.
Ear ache and teeth. When a tooth is infected, pain can be felt near the tooth, at the bottom of the tooth or referred to other areas of the mouth or face. It is not uncommon for a lower tooth to have pain that feels like it is the upper jaw and vice versa. If you are having pain or think a tooth has an infection, visit your dentist and have it checked out. Good luck. Otc pain meds would work for a short time.