The place where information about the past is stored is something we cannot shed light of consciousness on. We know neither its internal structure, nor the laws of functioning and we can only state the fact that information about the events that occurred in some form exists there and in a somehow changed form returns to our consciousness. We call this return as memories.
More often we don't recognize ourselves as remembering, and therefore we partially fall asleep during memories and lose ourselves in the present.