I'm pretty sure this is not possible to use a Sprint iPhone on ATT or T mo. Sprint phones are CDMA. ATT and TMo are GSM network phones.
It used to be that cut and dried - it is less so now. The Sprint variant of the iPhone 5S & 5C doesn't cover all the frequency bands that ATT & TMo use...