The soundtrack in a film consists of sound effects, dialog, voice-overs and music ( the score and songs that were either licensed or composed for particular movie), which have function to create atmosphere, portray emotions, connect scenes and give time/period references.
The Soundtrack consists of many different songs, but they all contribute to the overall feeling of the fill by setting mood and atmosphere. This is usually done by matching aural tone and visual tone or the direct opposite, emphasizing the important moment, filling scenes with music or leaving music out of the scenes.