iphone is locked how to unlock?
If it is locked due to entry of wrong passcode, you need to follow procedure as in the Support article where you posted your question.
For Carrier unlock you need to contact the Carrier who sold the iPhone. They will unlock per their unlocking policy.
Retrieving data ...