Dynamical properties of AMAZE and LSD galaxies from gas kinematics and the Tully-Fisher relation at z ~ 3