I am writing a journal article using the following settings:
\documentclass[letterpaper, 12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{setspace}
\doublespacing
\usepackage{secdot}
\usepackage{mathptmx}
\begin{document}
{\fontfamily{ptm}\selectfont
\title{This title}
\maketitle
\begin{abstract}
I examine
\end{abstract}
{\small\bfseries Keywords} Hello
\pagenumbering{gobble}
\pagebreak
\pagenumbering{arabic}
\section{Introduction}
\section{Introduction}
\section{Introduction}
\section{Introduction}
\section{Introduction}
\section{Introduction}
\section{Conclusion}
\section{References}
\section{Conclusion}
\section{References}
\appendix
\section*{Appendix}
}
\end{document}
Everything was going well until my TexStudio stopped creating a new page automatically. Note that my Page number 2 is now above my Section Headings. If I enter more text, it disappears under page 2 and no page 3 is automatically created. Please help!
I tried to search on many forums if this error can be resolved. I also repasted my code on Overleaf.com compiler and I see the same problem - so there is no issue with my TexStudio compiler! There is a problem with my code as 'page breaking' is not happening automatically.

titlesecis your friend. – Apr 12 '20 at 01:12\documentclass{report} \begin{document} \chapter{ABC} \chapter{CDE} \end{document}. And you can change the behavior e.g. withtitlesec. – Apr 12 '20 at 01:30