It may be a transient experience to a pathological loss of memory in specific periods, like recent memory, long-term memory, etc. The reasons may be a deficiency of vitamin B1 and b12, Excess use of alcohol, smoking, narcotic drugs, etc.

This video briefs about causes,diagnosis and treatment