You can reset your Apple ID password directly from your iPhone if your phone is signed into iCloud and you have a passcode on your phone.
- Open Settings on your iPhone.
- Tap your Apple ID banner.
- Tap Password & Security.
- Tap Change Password.
- Enter your iPhone passcode.
- Tap Done.
- Enter your new password twice in the New and Verify fields.
- Tap Change.