RAM is used to temporarily store data when processing something. Storage is used for long term storage of your programs and files. An example is if you are writing a document, while you are making the changes it is stored in RAM, but when you press the save button it is copied over to storage. The SD card would be storage.