A family of Microsoft word processing software products for creating web, email, and print documents.
Book formatting often uses both Different first page and Different odd and even header/footer formatting. To access those options, choose Format>Document from the macOS menu bar and choose the Layout tab of the dialog.
To create page with different formatting at the beginning and end, you'll have to insert Section Breaks, then unlink the headers and footer from the adjacent section. Here is Microsoft's help page on how to do that: Configure headers and footers for different sections of a document