If it's a sinus/ear infection, see a doctor as soon as you can. Earaches suck.
Until then, take a couple advil. Rub some mentholatum or Vicks Vaporub along your sinuses, temple and around your ear -- basically wherever you feel the pain.
After this, run some hot water -- as hot as you can stand -- over a washcloth and hold it to the side of your face where it hurts the most. This can help loosen the wax and give you some relief after about 20 minutes or so. It's important to keep the washcloth hot, don't let it get too cool.
Drink plenty of non-caffeinated fluids (water, juice) and get some sleep.
If it still bothers you in the morning, see a doctor.