Ear blocked after placing oil

I put some coconut oil into my ear to clean out the wax. Ssome say use olive oil. What happened was as I was lying down on the side of my head, a few minutes later my ear was clogged. I do not know why this happened, because oil is supposed to be effective in cleaning out the ear. Any ideas how I should so to unblock my ear? TIA