Hi, welcome to Health care magic forum.
It appears that you have some
fracture,of facial bones,causing pressure on the
olfactory nerve,caused the loss of olfactory function. Recently it would have released from the pressure, and regain its function.
The other cause may be the damage of nasal mucosa and regain the the natural epithelium,but it wont take that much time.
I advise you to
consult a neurologist for diagnosis and treatment,and to gain some other functions if any . You may need to have a C.T.scan for diagnosis.
Take more of green leafy vegetables,pulses,sprouts,and protein rich foods to have blood,general health and resistance against infections.
Wishing for a quick and complete recovery. Thank you.