Wikipedia has two videos explaining what SAM is for http://en.wikipedia.org/wiki/Sample_Analysis_at_Mars
It seems that it is related to the question of is/was there life on Mars. It can detect organic products that are most likely produced by life, and if it has, it means we will be able to follow these products to something more conclusive.