What belongs in a sitemap
Only the canonical, indexable pages that return a 200 status: no redirects, no 404s, no pages blocked by robots.txt or marked noindex. Large sites split sitemaps by type (pages, posts, products) under a sitemap index file. Most CMSs and site generators create one automatically.
How search engines use it
A sitemap helps discovery, especially for new sites and pages with few links pointing to them. It does not guarantee indexing; Google still decides whether a page is worth including. Submit it in Google Search Console and Bing Webmaster Tools, and reference it in robots.txt.
Questions, answered
It is not essential if every page is linked from the menu, but it is free, takes minutes and helps new pages get found faster.
Automatically, whenever pages are added or changed. A sitemap that lists deleted pages sends search engines to dead ends.