Interstellar Medium and Star Formation of Starburst Galaxies on the Merger Sequence