Before being deposited, sediment was formed by weathering and erosion in a source area, and then transported to the place of deposition by water , wind , ice , mass movement or glaciers which are called agents of denudation .