As you continue learning how to work with masks in GIMP, you should probably rename the layer you just created "Background" to "Layer 1." Do this by clicking on the "Windows" option on the main menu bar, "Dockable Dialogs," and then "Layers." Now right click on the layer called "Background" and then rename it "Layer 1."

click to enlarge
Now, click on "Layer" on the main menu bar and then choose "New Layer." Name this layer "Layer 2." Notice that even though a layer lies on top of your original layer the image still looks the same. This is because the top layer (Layer 2) is transparent. With Layer 2 selected, grab the bucket tool, select a pattern and fill "Layer 2" with it. Now, right click on "Layer 2" in the "Layers" window and then choose "Add Layer Mask" from the context menu.

click to enlarge
Make sure that "White (full opacity)" is selected and then click the "Add" button. You now can work with Layer 2 itself or you can click on the mask (to the right of Layer 2) to work with it.

click to enlarge