NTMs leverage formal rules and logic, derived from the Turing Machine model, to create computational frameworks for AI systems. The concept of working memory, similar to the human brain's working memory, enables quick storage and retrieval of information. This formalization allows for precise and testable computations, enhancing the capabilities of NTMs in solving complex problems and simulating human-like memory processes.