Why my ID Apple password is not working?

I'm trying to restore my iPhone through "erase all content and setting" but it's asking for my ID Apple password, which is not working (it says that the password is incorrect when actually is not). I tried to change the password and do it again but it doesn't change anything. Why my ID Apple password is not working? By the way, I already tried other methods to restore my iPhone but none of them worked.

Turn phone on off. Also sometimes my apple id sensor doesn't work all the time so i just wipe the sweat off my phone and finger and try again later

STEP 1: Pick up iPhone
STEP 2: Throw out window
STEP 3: Get an Android phone
STEP 4: Live happily ever after