It's called equalization of air pressure.
You can try to shake your head, or even bend down, with head between your ears and see if the moisture inside, that is blocking equalization of air, can be released, or drained.
Sort of like getting catsup out of a bottle, when the air cannot get in, draining is slowed.
You can also just wait for ears to dry out, they are probably dry now.
But, worse, you could have an infection that is causing puss to develop, or some draining of fluids in inner ear.
It your ears continue to have this problem longer than 5-6 hrs, I'd call an "ear" specialist.