Unlock it how ? If you mean from a carrier contact the carrier that it's locked to. If you mean activation lock : Turn off Find My iPhone Activation Lock - Apple Support
If you mean that you've forgotten the passcode to unlock the phone : If you forgot the passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support