Linear transport equations with initial values in Sobolev spaces and application to the Navier-Stokes equations