If you have connected to a source repository service with the wrong account, you will have to go to your user settings in the source hosting service and revoke the Oauth token manually. Then you will be able to re-connect to another account in App Center.
Important:
Keep in mind that if you connect to a new account, you will lose all the build configuration and previous builds for ALL the apps configured with the previous account.
In order to connect to another Azure DevOps account to build your apps, first step is to revoke the Oauth token. Go to https://app.vsaex.visualstudio.com/me > Manage Authorizations (See screenshot below) > Revoke App Center token. Once revoked, it takes up to 60 minutes for that token to lose access, so you will have to wait until you can connect App Center with another Azure DevOps account. Then, go back to App Center in the build tab, reconnect to Azure DevOps and go through the Oauth flow again. Make sure that before you re-do the Oauth flow in App Center, you log out in the browser from the identity that you used to connect to the previous Azure DevOps account.