RAM or random access memory, as the name suggests, is the one that can be randomly accessed, altered and the changes there in can be saved. It is thus used to store information on the devices.
ROM or read only memory, is the one that can only be read and is therefore the permanent memory of the device that can neither be altered nor deleted.