To flash a ROM, you need a custom recovery like TWRP (Team Win Recovery Project). This allows you to wipe existing system data and install the new ROM files.
Inside TWRP: