You can recover your Facebook account in a browser or using the mobile app if you can't log into your account normally.
You can change your Gmail password on iPhone using the Gmail app, on Android using the Settings app, or on your computer via your Google account.