I put my sim card in a different phone and now its asking me for a SIM network unlock code
It's because it is lock with a carrier. Contact the carrier the phone is locked with and buy an unlocking code so you can start using different SIMs on that phone.