To move a layer, select this option. If the layers are grouped (chain symbol), all layers in the group will be moved.

When this mode is selected, under tool toggle you'll see two options, "Pick a layer or guide" and "Move the active layer". The first one will move the layer that you select and the second one will always move the active layer.