New pages are started in one of three way.
1) You enter stuff until the current page is full, and a new one starts.
2) You use a Page Break
3) You use a Colum Break, and the next column is will be on the next page.
The easiest way to delete unwanted blank pages:
1) If the blank pages are at the end, then move the cursor to the very end of the document and delete untill all the unwanted pages are gone.
2) If the blank pages are in the middle, move the cursor to the text after the blank page(s), then enter delete untill the blank pages are gone.
Headers and footers are automatic. When the body of the page has nothing in it, the page will be deleted. Hold in mind that invisibles count, and will create a page whether there is any visible text or not.
If you can't figure out what is going on, you can select the text and/or apparrent empty space to see all the new paragraph, column break, and page breaks, as well as other invisible characters.