Moths and pantry pests

Holes in wool, webbing in the rice jar. Which moth it is, what to throw out, and how to stop them coming back.