Scene State Machine

I want to create an Scene Machine for to switch from MainMenu to level1, 2, 3, and when the player is dead, etc How can I do it ?

Thank you

enum SceneState { MainMenu, Level1, Level2, Level3 }