Memory is accessed faster than secondary storage.
Memory is used to store instructions so that the processor can quickly fetch, decode and execute them.
There are three types of memory:

This is how you should understand the difference between secondary storage, RAM, and the processor.

RAM stores instructions and programs currently in use.
RAM is volatile – meaning that when power is lost, all the data stored on it is also lost.
The size of the RAM impacts user experience.