A hook that has pulled out
Look at the hole it left. If the yarns are whole, sew the hook on the overlap and the eye or the bar on the underlap, with several stitches through each ring, catching the interfacing. If the cloth has torn, patch behind it first. A neck hook on a trouser waist will open again. Use a skirt hook for a waist. The hooks-and-eyes page is the product. This page is the one that came off. This varies by fabric. Test on a scrap first. A firm waistband holds a hook. A single layer of crepe does not, without a patch.
The button page is a different fastening. Do not sew a hook where a buttonhole was the closure unless you mean to change it.
Stitch the eye so the waist meets. An eye set too far back leaves a gap.