Winds and infalling gas in Lyman break galaxies