Breaking of quantum ergodicity and scars