Three-dimensional distribution of molecular & atomic hydrogen in galaxies can give clues to star formation and galaxy evolution