This article explains three methods to unlock your Samsung Galaxy phone so that you can switch phone carriers.
How to Unlock a Samsung Phone – Password, Network and Google Account Guide
When you buy a smartphone, it is usually locked to the carrier’s network. This means that the phone can only work with the carrier that you bought it from, even if it is compatible with a different network. If you know how to unlock a Samsung phone, you can use it with the carrier of your choice.
You'll need your device's IMEI number to get started. You can find this number in your device's settings, or you can do the following:
Open the keyboard app on your phone.