It largely depends upon how your game is programmed, global variables and global objects being the big important bits. You need to make sure to reset those before you go back to your first layout.
It also depends on what you want to reset to in your game. Do you just want to restart the level? Do you want to go back to the title screen? Another menu? This will also affect how you go about programming a reset function.