Browsing the Network section in the sidebar works when your NAS shows up there. When it doesn’t, or when you know the address anyway, typing it is quicker.
In Finder, press Command-K to open Connect to Server and type the address of the share:
Command-K
smb://nas.example/media
smb://192.0.2.20
Click Connect, choose Registered User and log in. The share mounts and opens in Finder like a disk.
The part that’s easy to miss is the plus button next to the address field. Apple’s guide says clicking it adds the server to your list of favorites, and the pop-up menu at the right of the field lists recent servers. Next time it’s Command-K and a double-click on the favorite, no typing.
Apple mentions two more ways back: Apple menu > Recent Items lists recent servers, and you can add a connected share to the sidebar with File > Add To Sidebar.
An example: a family NAS with a media and a backup share. Save both as favorites and the whole household can reconnect in two clicks after a restart.
I’d use a stable address. If the NAS gets a new IP from the router every week, a favorite with that IP stops working; a fixed DHCP reservation or a name that resolves on your network avoids that. And if it fails, Apple’s advice is to check that the server is available and that you have permission to connect.
Further reading: Connect your Mac to shared computers and servers (Apple), Mac keyboard shortcuts (Apple Support)