Spin glasses and nonergodicity