Open your document and then from the menu bar select Insert > Header > Default Style. This will add space at the top of the page for your header and automatically place the cursor so you can start typing. See image.
Start typing to enter your title.
Then hit tab twice to position the cursor at the end of the row. Go to Insert > Fields > Page Number to add the page number.