Sort:  

Practice and research!
I've been reading since I was 7 (at 12 I read a book a day) and writing stories since I was 8. You get a feeling for how a story can and should progress, what plot twists make sense and what's the right flow.

Well you make it look easy, but I know this is hard work. Really enjoying it.