Install a custom recovery, such as TWRP (Team Win Recovery Project), which will allow you to flash custom ROMs.