Enter Recovery TWRP (i prefer this one)
Advanced
ADB sideload
Connect phone to PC
Open command line where you have the file of ROM assuming you have ADB in Path of system, if you have not just copy the ROM to same place you have ADB files.
Type:
adb devices
(verify you phone are detect)
adb sideload name_of_the_rom_file.zip
(Wait the file is transfered to phone and recovery flash)
At this point you have 2 options:
You can go again to adb sideload and repeat the process but with the root zip or reboot if you don't want root
Just ignore the No os warning over recovery prior to reboot
Restore the contents of sdcard backup to phone