why the object not following the curve?
The curve has start and end with no direct indices. Set current frame to zero, then select followed object and a curve as active, then Set Parent To > Follow Path, you will see a dotted line pointing to start of curve and move object to it. If Curve direction is wrong use Edit Mode > Segments > Switch Direction. Curve origin doesn't matter.



By default animation adjusted to 100 frames starting from zero. You can tune Curve Path Animation in Object Data tab.



Result in 60 frames.