An ear infection, or otitis media, is the most common cause of earaches. Although this condition is a frequent cause of infant distress and is often associated with children, it can also affect adults.