@TheStarcoLife Practice!!! Seriously, just keep writing and reading and you'll get better at it over time.
Also a tip: Plot out your stories from beginning to end. Know what's going to happen in every single chapter, or at least have a vague idea. That way nothing seems out of place or sudden, plus you can set up character and plot arcs. Ik some people don't do this, but I personally can't write without knowing what's going to happen next.
Idk if that helped, but there's my advice!