Glaciers cause erosion as they move, picking up and transporting sediment and rock material from the landscape. When glaciers melt, they deposit the sediment they have carried, creating landforms known as moraines. Moraines can be formed at the edges of a glacier (terminal moraines) or along its sides (lateral moraines), and they consist of the accumulated debris that has been eroded and transported by the glacier.
So, in summary, the correct statement regarding how erosion and deposition work together to create a moraine is:
Glaciers cause erosion as they melt, carrying sediment that gets deposited in a thick layer.