Ear drops, water
Use otc ear
drops (never insert the tip in your ear) then gently flush with lukewarm water - shower is best - don't use the ear bulb included with ear wash kits.
You may still need to see the doctor to have wax mechanically pulled out. This is easily done by looking in the ear and using a probe to pull it out. Never insert anything in your ears yourself.