How to change an iPhone 4s from At&t carrier to T-Mobile?

I'm currently with T-Mobile and I have a Windows Phone, and I HATE my windows phone.

I have received an iPhone 4s from my grandma and she says I can have it, but the problem is that she used AT&T for the iPhone, and when I took the AT&T sim card out and replaced it with my T-Mobile sim card (There both the same size and fit), but the whole iPhone just restarted from the apple screen then it turned on, and when I was going through with the setup process and it connected to Wi-Fi, then it displayed a message saying SIM NOT VALID. THE SIM CARD THAT YOU CURRENTLY HAVE INSTALLED IN THIS IPHONE IS FROM A CARRIER THAT IS NOT SUPPORTED UNDER THE ACTIVATION POLICY THAT IS CURRENTLY ASSIGNED BY THE ACTIVATION SERVER. ITS NOT A HARDWARE ISSUE WITH THE IPHONE.

I don't want to spend money i'm saving up as much as I can and it costs $55 and I don't want to spend any money.

What can I do to get my iPhone to work from an AT&T to T-Mobile?

I think you have to buy a T-mobile SIM card that is actually registered for your phone and plan.

  • Will an iphone 4 change carrier if i just insert a new sim? My brother has inherited our dads old iPhone 4, and it was on O2. But now he has a 3 sim, and he is trying to install it. He took out the old sim and inserted the new one while it was on. And nothings happening. Is this normal? Has he broken it? Please reply as soon as possible!
  • Why did my iphones carrier change? I'm with telstra, and now my phone says carrier as optus. My phone is locked to telstra but i thought it wasn't and ordered a tpg sim which i put in it. I can't call anyone but my carrier changed?
  • Iphone 4 - Is it possible to change to a different carrier? I have iphone 4 non jailbreak, with koodo as a carrier paying $35/month. I wanna switch to mobilicity but i can't unless i pay out my phone since, this phone is 3-year term, and its been less than a year. However, i heard that if you jailbreak your phone you can change carrier. Is this possible? The reason i want to switch carrier is because mobilicity is cheaper and gives more unlimited features for a cheap price over koodo.
  • If I buy an iphone used from another carrier ad buy a sim card from my carrier will that work? I have an iphone 4s with virgin mobile and I want an iphone 5 but all virgin mobile phones are so expensive! I looked on ebay for virgin mobile nano sim cards and they are only around 2 dollars. If I bought one of these sim cards and a used iphone 5 from another carrier would it work with my carrier?