What makes you think you got it unlocked?
Unless you contacted your carrier and they agreed to unlock it for you.
They'll tell you to restore your phone and you'll get a message on the screen that the phone has been unlocked by Apple.
Then it will work with any sim you put in it without any jailbreaking or hacking.