how do I treat an infection in my ear?

I was having a throat infection but I flew with it! During top of climb I had a really severe pain in my right ear and its still blocked from two days ago. I can barely hear and its sensitive from inside and outside.