Mass accretion flows in the high-mass star forming complex NGC 6334