I have some unlocked phones and they work on both networks. So it's just a matter of the SIM.

I'm on Ting.com (tmobile reseller) and don't pay much.