Difference in light and material usage

When should the diffuse, specular and ambient properties of the light be modified and when should those of the material be modified? So what is the difference in their usage.