@anon73440385’s and @Ajlittoz’ answers are complete towards how to do what you ask for in a new document, and why it is so. Your stated problems are typical of mixed MS Word and Libre-/OpenOffice contexts. I will try to provide a rough guide to avoid the worst pitfalls of that mix. If you have everything sorted out by the explanations given by others, feel free to disregard the following.
Page numbering
The page numbering tool available in Word is not present in Writer. There used to be a pagination plugin which offered similar functionality, but I think it is incompatible with current Writer version.
What that tool does is to enable the page header or footer, and position the page number as requested, inserted as a field code. You need to do it in 3 steps in writer:
- Enable page header or footer
- Position the cursor in that header/footer, where you want the page number to appear
-
Insert
- Field
- Page #
Page format - layout - header/footer
Word and Writer are in many ways similar. When it comes to page layouts, and specifically headers and footers, the building structures are fundamentally different.
Word: Page layout is maintained by section. When you insert a new section, it will inherit settings from the previous section, but you can choose to break the link between each section’s headers/footers and edit page layouts individually for each. Additionally, or each section you can also have a different initial page, and different settings for odd and even pages.
Writer page layout is maintained by page style. One property of a page style is “next page style”, which can be used to build elaborate page sequences. When you insert a manual (or “hard”) page break, you can choose a particular page style for the new page. You can edit page layout directly, which will affect all pages of the same style (not the same section, like it is for Word). You can also edit the settings for page styles in the style dialog. Styles
- Manage
Worst case
If you have a document alternating between contexts (typically document editing in Word and saved as odt file, or edited in Writer and saved as doc/docx file), then every transfer of your document between contexts (that is each open and each save) will insert workarounds at every page transition where there is a change of page layout (or other formatting/objects which are handled differently between the apps). If the content is later modified so that page breaks occur at other points in the text flow, new such elements are added. It is going to be a mess. If that is your situation, you need to do the following as soon as possible:
- Create a new blank document.
- Copy everything from your old document to the new one.
- Paste special - unformatted text
- Every object which is not text (frames, graphics) must be copied individually.
- Save your new document using the OpenDocument text (odt) file type.
Work to do: recreate the desired formatting, applying styles as needed. Before you proceed, make sure you understand the Writer styles (which are significantly more elaborate and powerful than Word’s styles). See the link provided in Ajlittoz’ answer.