The nav element denotes a section of the document that contains links to other pages or to other parts of the same page. Obviously, not all hyperlinks have to be in a nav element.
The h1 element represents a heading. HTML defines a hierarchy of heading elements, with h1 being the highest ranked. The other heading elements are h2, h3, through to h6.