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 Bitbucket account to build your apps, first step is to revoke the Oauth token: go to https://bitbucket.org/account/ > Access Management (Oauth) > Revoke App Center token. Then, go back to App Center in the build tab, reconnect to Bitbucket and go through the Oauth flow again. Make sure that before you re-do the Oauth flow in App Center, you log out in that browser from Bitbucket first.