When you unlock a phone, it means that you alone own the device and can use it with any cell phone carrier.
You can factory reset your iPhone and wipe all its data in the Settings app. If you don't remember your password, you can use iTunes instead.