Streams were only safe to drink from if they were well away from a village. Otherwise they were too polluted to be safe to drink.
Vikings, like all other peoples of the time, relied on making a very weak beer, which they drank all the time.
The alcohol in the beer killed most of the germs in the water.