If at any time you know the exact values of all the coordinates and momenta, and you know the form of the Hamiltonian, Hamilton’s equations will tell you the corresponding quantities an infinitesimal time later. By a process of successive updating, you can determine a trajectory through phase space.