Memory consists of storage locations identified by unique addresses. There are two types of main memory: RAM and ROM. RAM is volatile and holds data temporarily, while ROM permanently stores programs and data. Common types of RAM include DRAM, SDRAM, and SRAM, with SRAM used for cache memory which provides faster access than main memory. ROM types include PROM, EPROM, EEPROM and Flash ROM.