Nonequilibrium phase transition in stochastic lattice gases: Simulation of a three-dimensional system