Collective effects in solids and liquids