Whomever you got the phone from, you might want to contact them and ask them to contact their carrier to have it unlocked. What carrier is it locked to? Is it just carrier locked or icloud locked? How do you know for certain that it's carrier locked?
You might want to provide more information so we can better answer your question.