Nonstationary flow and nonergodic transport in heterogeneous porous media