Memory enables computation by staging data and instructions across a hierarchy of speed and capacity. The CPU operates only on values in registers; data must be loaded from memory and stored back as programs execute. Faster memory is closer to the CPU but smaller, while slower memory trades speed for capacity.