There are a number of great movies in which rock, and other musical genres, play an integral part in the larger social messages they are attempting to convey, and here's a list of some essential ones that do that better than most.
'American Graffiti' is a significant film for many reasons, and represented the last non-'Star Wars' movie that George Lucas ever directed.