If you don’t see the fields, turn on headers and footers for the document (click in the toolbar and choose Page Number.
To set the distance from the top and bottom page margins, click Add page numbers in Pages on MacSet up facing pages in Pages documents on Mac