You can reset an iPhone, even without the password, by putting it into "recovery mode" or erasing it via iCloud's Find My ...
To turn off the password on your iPhone, you'll need to open the "Passcode" menu in your Settings app.