The lack of ability to detect odors is called "anosmia".
My brother has it, it has developed in the last couple of years, he's 76 years old.
A blessing sometimes but I'd hate to miss out on awakening in the morning to the smell of bacon frying, among many other great smells.