If you are unable to reset your password from the front end then please try the below-mentioned steps to reset the password.
1. Go to your Moodle database.
2. Then go to the mdl_user table and edit the user for which you want to reset the password.
3. In password row, enter your new password in value column and choose MD5 in function column.
4. Then save the changes.
I have also attached the screenshot.