The Gaia-ESO Survey: Dynamics of ionized and neutral gas in the Lagoon nebula (M 8)