If your iPhone's screen is locked, you can use the correct screen passcode to unlock it. But you cannot directly enter your iPhone with the IMEI number.