What happens to my Terms of Agreement contract with my network provider if I unlock my phone?

The Terms of Agreement contract you signed with your network provider and unlocking your phone are totally unrelated to each other. Your commitment to your network provider is linked to the service and not the phone. In most cases, network providers apply a termination fee for cancelling the contract ahead of time. However, this termination fee is usually relatively small compared to the savings you can make switching to another network provider.