Economies of scales

Briefly describe how economies of scales happens. Why is it an important concept in relation to consumption and production? What conditions lead to diseconomies of scale?