i don't recall getting ear infections....but just recently with a cold i had ear pain. same thing with my daughter tonight. but i'm sure allergies/sinus trouble could cause earaches too. take some advil and/or put a warm compress on your cheeks or forehead.
It could also be "swimmer's ear" - too much water sitting in the ear canal can cause an infection. I would get them every once in a while from my shower so I started using a cotton swab to dry out my ears after my shower. You can also swab your ear out with rubbing alcohol to help dry out the ear canal. Just be careful not to swab too deep so you don't injure your ear drum.
Or, it could be too much wax buildup in your ear canal putting pressure on your ear drum. If that is the case, you would need to go to the doctor and have them clean out the ear canal. Then, swab your ear every couple of days to remove the excess wax. My Dad had that problem. You can tell if it is wax buildup - gently swab inside your ear. If you see wax on the swab, then you have wax buildup.
Bronchitis can also cause ear infections. The sickness can drain righ up into your ear and into your ear cannal. A lot of people get ear infections when they get any type of sickness that affects the throat or lungs.