You can reset an iPhone, even without the password, by putting it into "recovery mode" or erasing it via iCloud's Find My service.
Cloud Keychain saves a user's passwords, credit card information, and other sensitive data and syncs it across Apple devices.