The memory chip remembers
The memory chip’s purpose is to store information.
A memory chip contains the same components as a logic chip, but with one additional component, the memory cell. The chip can store information within.
Do you remember the different parts of a logic chip?
A memory chip therefore has an additional component: the memory cell. You can lock up electrons and keep them locked up in this cell. Then you can check whether each cell is full or empty.
Read and follow the instructions to learn exactly how a memory chip works.