\documentclass{article}
\usepackage{hyperref}
\begin{document}

\section{Foo}

\label{aaa}

aa
\ref{aaa}

\end{document}
