There are two ways you can tackle the problem here. If you don't want the image to float, then you should resize the image by using \includegraphics[width=x,height=y]{figure} where x and y are values with consistent units preferably in for inch or cm for centimeter. Another way is using scale as \includegraphics[scale=x]{figure} where it will scale in percentage ratio where 1 means 100 percent the original size, 0.5 means 50 percent and so on.
The second approach and recommended is to allow the figure to float. And the best way to do this is use [htbp!] as the float specifier. Another good thing is that you can label the figure and then reference it back. Example:
\begin{figure}[htbp!]
\includegraphics[scale=0.5]{figure}
\caption{some caption} %<---- If this is the first figure captioned, then it will be Figure 1
\label{fig1}
\end{figure}
And then you write some text say I am referring to figure~\ref{fig1}. This will render the text as I am referring to figure 1.
\includegraphicsmost likely)\includegraphicsmakes a box that never moves it is just inserted like a big letter at the current point, although if it does not fit on the page it will page break before that line. – David Carlisle Jun 26 '21 at 16:41text\includegraphics{figure}then it will appear on the same lione astextthere is no "space above" – David Carlisle Jun 26 '21 at 16:43