How do You Write a Song?

How to write a song, well when writing a song people have different methods. Some artist are just inspired and write as if writing poetry from the heart. There are parts that a song must have such as a hook or bridge.