General remark first: when posting here, always mention OS name, LO version and save format. Please do it by editing your question (= modify it; don’t use a comment).
Just like you can structure your text into paragraphs by separating them with Enter, Writer allows you to structure your book/document into several “parts” with different page geometries and properties. Your document is then a sequence of similar pages separated by special page breaks.
The properties of the pages (header and footer are such properties) are defined by page styles: margins, kind of numbering, presence of footer/header, number of columns, geometry of footnotes, … You must create them before using them or customise a built-in one to fit your needs.
When you have your page styles, you can “slice” your document by adding the special page breaks with Insert
>More Breaks
>Manual Break
. In the dialog you can choose which page style to activate after the break and optionally the new starting page number. This special page break creates a boundary which isolates the pages. Then the pages before and after the break can have diferent header or footer.