Lyrics always first.

Figuring out time signature and tempo comes next.

Song structure next.

Chords usually next. I will often workshop a chord progression that catches my ear from someone else’s song or Tickets to Write, or something Rick Beato points out in one of his What Makes This Song Great videos.

Melody of different sections is usually last.

Rarely melody first. Sometimes a lyric will infer a melody but so rare