It's probably the fluid in your inner ear. Sometimes, ear infections can cause that. If it's REALLY loud, it's probably "Exploding Head Syndrome," which sounds scary, but is totally harmless.
The most common causes of these symptoms are an ear infection and an elevation in blood pressure. Those with high blood pressure may often experience this.