What is memory and why is it important for the computer to work properly?

memory is ram and rom

ram is required for computer processing data ,ram is permanent device like hard disk ,cd etc