Some kids live in households where they listen to thousands of books by age 5 or 6, including not only stories of increasing complexity but also natural history, biography, science, technology, ..., and other kids never get that kind of attention or experience, and end up far behind in those skills.
The ability to “memorize” (i.e. learn) rests on a vast subconscious structure built up by fitting together language, starting from little bits and pieces of vocabulary, and building to subtle understandings of complicated ideas.
The way to train it is by giving the little neural net of the brain as much meaningful input as possible about the relevant parts of the world, and letting the brain fit them together in a web of connections. Not by trying to practice/drill rote trivia (say, reciting state capitals or the multiplication table).