If you’re worried about bacteria—like after a flood or a weird taste—boil your water for one minute. Let it cool. If it smells normal and tastes clean, you’re golden. If it still smells funky, don’t drink it.
Boiling won’t fix chemicals or heavy metals, though. It just kills the squiggly stuff. So if it tastes weird after boiling, you’ve got a bigger issue.