1) You have to ask Sprint for the unlock code or buy it from one of the unlock code sellers on eBay. (Careful - you have a limited number of tries before the phone locks. If it doesn't work the first time, stop.) Each device - not each model number, but each individual phone - has a different unlock code, so no one here can give you the code for your phone.
2) Since H2O uses AT&T towers, you'll get 3G, not 4G or 4G LTE, because the phone doesn't have the right 4G radio frequencies for AT&T towers.
BTW, S-OFF, TWRP, Root and which ROM you're running have nothing to do with unlocking the SIM lock or with the radio frequencies.