1. go to the layer with the image you want to use as a mask, turn off the other layers
press Ctrl-Atl-~ to make a selection based on the composite (everything visible) channel
alternatively you can use Ctrl-Alt-1 to make a selection based on the red channel, Ctrl-Alt-2 (green), etc. Note: Explore the Channels palette, it is your friend for making complex masks
2. With the selection still on (marching ants) turn off the 'mask source' layer, go to the layer you want to apply the mask to and...
3. click the mask button at the bottom of the Layers palette
Note about masks: black is opaque (image does not show), white is transparent, grayscale is all in between, etc, etc.