In this paper, We present the contact geometry three dimensional Heisenberg group H3. We introduce the notion of the geodesic and magnetic surfaces in n-dimensional manifold. Next, as application, we determine H3 the parametric equations of such surfaces and we close the study with examples.