Play, replay, how to do it correctly?

Hello, please tell me how to properly organize the start of the game after pressing the key, as well as repeat in case of defeat . I need a skeleton .

First thing first, you need to know the basic of scene (this tuts maybe will help you https://www.youtube.com/watch?v=gFXx7lgxK9A)

Basic API:
this.scene.start('SceneKey');
this.scene.restart();

And how to organize it? its just depend on you, really. As long as you know to operate them.
If you have TitleScene, GameScene, and GameoverScene, call it properly, where do you want to go.

Edit:
Some example: https://labs.phaser.io/edit.html?src=src\scenes\changing%20scene%20es6.js

My solution is to store the original positions and states of the objects and restore them whenever the user wants to restart the scene.