You would need to contact the carrier in which the device is from to have them remotely unlock it through iTunes or look at third-party alternatives and even then, they may tell you that you specifically need to activate it.
Call the wireless carrier that the phone is locked to and ask them to unlock it or try your luck with one of the numerous unlock services that can be found via a web search.