Galaxy S5 screen won't turn on, how to factory reset with Odin?
Follow this guide for restoring stock rom

https://www.idroidspace.com/official-stock-rom-for-samsung-galaxy-s5/

Follow this guide to install TWRP which is a custom recovery which is needed to install any custom rom.

http://www.droidviews.com/install-twrp-recovery-samsung-galaxy-s5/