How to change the background image with button click everytime?

Hi all my phaser game has one functionality where user can change the backgroud image of phaser game.

this.config = {
  type: Phaser.AUTO,
  scene: new NewScene(this),
  backgroundColor: "#FFFFFF",
  scale: {
    mode: Phaser.Scale.FIT,
    parent: "gameContainer",
    height: 1300,
    width: 2500
  },
  physics: {
    default: "arcade",
    arcade: {
      gravity: { y: 0 }
    }
  }
};

Does this help? Phaser - Examples - Buttons - Action On Click

You could add an image set size to the canvas and then update the texture with
bgImage.setTexture('texture-name')

https://newdocs.phaser.io/docs/3.55.2/Phaser.GameObjects.Image#setTexture