How can I use layer masks effectively in Photoshop to achieve precise selections and blending

How can I use layer masks effectively in Photoshop to achieve precise selections and blending