The processor processes data and instructions. The ram holds those instructions and is capable of feeding info to the processor more rapidly than storage whether it's a hard drive or ssd. Basically like a buffer. A cpu processes data so rapidly that it would take ages to read that info from the hard drive in real time. Data moves from the storage drive to ram and frequently used info stays in ram so the cpu doesn't have to wait for the storage drive to find it all over again.
Imagine cooking, the hard drive is like when you begin and go to your recipe box, take out a recipe you want to cook, go to the cabinets to get the cookware and measuring cups and things. If each time you went to do the next step of the recipe you had to go back...