Out of the box, Garry's Mod does not give you a proper spectator mode — you cannot simply click a button and float around watching other players.
The usual fix is an addon. The legacy repository at garrysmod.org (garrysmod.org/downloads, entry 46486) is where the old community tools live, and the modern equivalent is the Steam Workshop, which is far more convenient since it installs straight into the game. Search for spectator or admin tool addons and you will find several options.
If you run a server, admin mods such as ULX or ServerGuard also add spectating, free-cam and teleport tools. For a private session, hosting a local server with cheats enabled and using noclip gets you most of the way there without installing anything.