your phone was not officially unlocked, that's why this happened, now go to any mobile shop, they will install a new software on you iPhone, and will unlock and jail break it...