An ear infection
seems the most obvious if the ear is hurting, can be due to pressure from fluid or pus
in the middle ear. The eardrum itself may be inflamed, not a true ear infection.
Getting off an airplane may create that pressure and pain sensation, but not need antibiotics. Unless the ear is draining, olive oil into the ear canal may help the pain. Office visit in several days if not better.