Thermalization and ergodicity in one-dimensional many-body open quantum systems