I need to get my passwords to this phone
How I transfer my passwords from my other device to this
How I transfer my passwords from my other device to this
If you do not remember the Apple ID Password then follow the steps given in this Apple Article -> If you forgot your Apple ID password - Apple Support
If you do not remember the Apple ID then follow the steps given in this Apple Article -> If you forgot your Apple ID - Apple Support
If you are the owner or the owner has shared all information with you then to open Activation Lock:- If it is Activation locked, read here --> Turn off Activation Lock - Apple Support Activation Lock for iPhone, iPad, and iPod touch - Apple Support
Learn how to remove a device from a previous owner's account.
If you are not the owner and do not have the Apple ID and Password then there is no way that you can get into this iPhone unless the original owner shares the Apple ID and password with you. If you are lucky you can get into this iPhone if they (owner) accidentally remove the device from their Apple ID.
If you had enabled iCloud keychain then enable it on this device too and use the same Apple ID to log in.
You cannot transfer iPhone Passcode from one device to another.
I need to get my passwords to this phone