Long-term memory is formed in three stages - attention, storage, and retrieval. It affects critical thinking by allowing reflection on past experiences to improve problem solving and learning new skills. Strong long-term memories are formed when nerve cells associated with a memory are strengthened.