Fly while Having a Cold

What causes ear pain when flying?

Question1 : Jenny caught a cold last week. She had runnynose and was suffering from pain / blockage in the ear while travelling on a flight to Japan. What might cause the pain?

Question2 : What’s the treatment for this condition?