Memory isn't just a single thing; there are multiple types. Explicit memory is under conscious control and involves factual information. Implicit memory is not under conscious control, and includes procedural memories (i.e. remembering how to do things) and emotional memories (including trauma memories). There is both short-term and long-term memory, and sleep is a crucial time for the consolidation of long-term meories.
Dr Priyanka