Hello there
This is an almighty open ended question, but you are in the right place.
There are lots of threads on this forum about the wrting process, so dig in and start reading.
Listening and reading on the "Review" forum will also give you some insight into how we all work as writers and what we produce...learning by doing and listening are key to any musician.
And welcome!
JN