Nonequilibrium phenomena in damaged media and their effects on the elastic properties