This condition is called tinnitus. It may be due to any pathology in your ear. Some times it happens due to excessive wax accumulation in the ear as well. You can go to an ENT to get it checked.
It can also be caused by high blood pressure or some medications like aspirin or some antibiotics.
Better get your ear and hypertension checked first.