You can take a cotton ball or something, soak it in rubbing alcohol and let it drip a few drops in each ear. Or you can pour peroxide in them and let them drain. (avoid getting water in ears after showering or letting wins blow in them)
It depends on the kind of pain. If they are clogged, a decongestant like Pseudophedrine may help drain them or relieve any pressure. If you have had pain longer than 3 days you may have an infection and want to see a doctor.