my iphone is locked out of the app store.how do i put my new email and password in it

i tried to download some apps and it said i was locked out.. how can i put my new email and password in
Read this. https://support.apple.com/en-us/HT204106

If these steps do not work, contact Apple Security.

Original thread: https://forums.imore.com/threads/my-iphone-is-locked-out-of-the-app-store-how-do-i-put-my-new-email-and-password-in-it.374548/