Kames are mounds of fluvioglacial material (sorted and often stratified, coarse sands and gravel). Meltwater held back by terminal moraine led to the formation of lakes and material was deposited where the meltwater left the glaciers to flow into lakes. When the ice supporting the up-valley side melted, the material collapsed back to from a kame.
Kames are quite difficult to explain but hopefully this diagram makes things clearer!
Kame terraces are found along the side of a glacial valley where meltwater runs between the glacier and the valley side and material is deposited when there is a loss of energy. The material is sorted because larger material is dropped first and then smaller material dropped last.
(the picture at the top isn’t actually a kame but I thought it was pretty cool so there it is…)