Do you know which carrier it is locked to? If so, you can contact that carrier and if you are eligible the carrier can assist you.
If you do not know, Apple Support can tell you which what the activation policy is on the phone but will not unlock it for you since that is a carrier issue.