Banging noise coming from somewhere every time when open or close the tap
Is this a new phenomena? You're describing "water hammer" and it's caused by a sudden pressure change causing the pipe to jump, basically. There are a few strategies but since you're saying multiple things cause it, start by making sure there's no place where a loose pipe can bang against other objects, such as wall framing.  In all likelihood you need a "water hammer arrester" installed (or replaced)