Memory involves encoding, storing, and retrieving data and information. There are three main types of memory: sensory memory, short-term memory, and long-term memory. Long-term memory is divided into declarative memory, which involves facts and episodic memories, and procedural memory, which involves skills and how to do things. The brain combines neurons in the upper part of the head to perform these memory functions.