If ear pain is keeping you up at night, try swallowing and yawning to help open the eustachian tubes. You can also sleep in an elevated position to relieve pressure on the eardrums if the pain is felt most when you're lying down.