The music is just the melody (usually vocal melody) plus any significant instrumental hooks (e.g. a riff). The chords, arrangement, instrumentation etc are not considered part of the song.

Neither the writer of the music or the writer of the lyrics is necessarily entitled to more than the other. It depends entirely on the agreement they made when writing the song. Most commonly its a 50/50 split.