Non-ergodic phases of matter