Your iPhone is locked to a carrier which is not the one you are trying to use and you can do either of the following:
1. Get the carrier your iPhone is locked to, to unlock it so that you can use another carrier. Normally this would have to be requested by the person who had the contract with the carrier the iPhone is locked to.
2. Use the carrier the iPhone is locked to.