Dependence of mechanical properties on molecular motion in polymers