Most connection failures in Steam are temporary and clear up with a restart of the client. Work through these in order before assuming anything is broken.
The problem is probably outside the client. Check whether other internet-dependent apps are working, restart your router, and temporarily disable any VPN or firewall rule that might be blocking Steam's ports. Steam also has a status page worth checking, since outages happen.
Still stuck? The official Steam support site has a troubleshooting flow that covers the less common causes.