Dynamics of a mass-spring system in contact with a rough surface moving according to a sinusoidal law