From the Super Mario Wiki
The game's purpose is to rise or lower the bridges by spinning the wheel to save the people from falling. If done so, the game is won. However, if one single person falls, the player loses the game.
Changes in WarioWare Gold
The gameplay is largely the same, though with a graphical update and a new mechanic added to later levels.