This video goes through how to create layer masks in Adobe Photoshop both by using selections made by using different "marquee" tools, and by using vector shapes from Adobe Illustrator.
Layer mask can be used to non-destructively hide or reveal layers.