When you sign in to your Apple ID, you will be asked to enter the passcode for your iPhone. The passcode is the code you use every time you unlock your iPhone.
If you have forgotten your passcode, read more here:
If you forgot your iPhone passcode - Apple Support