Comets originate from beyond Pluto and accelerate towards the Sun when disturbed by other bodies. They fall into elliptical or parabolic orbits.
Elliptical orbit:
Parabolic orbit: