Random Access Momory and Read Only Memory

The only thing that I know about RAM and ROM are their differences. RAM stands for Random Access Memory and ROM stands for Read Only Memory. I would like to know about their functions separately on the computer system. Whose size affects the speed of computer? Which is more expensive? Similarly, does the damage of RAM causes the computer to start not or frequently makes the computer to restart.
