how to make object to follow curve with bending rather than it staying rigid
You want the Curve modifier. That will cause the mesh to distort to follow the curve. Don't forget to make sure the mesh and curve's origins are at the same location. Then animating it moving along the curve is as simple as animating it moving along the same axis the curve modifier is using.