They are not quite synonyms.
"spurious" is an adjective which relates to theories and arguments, and means unconvincing, weak, untrustworthy
e.g. His argument that the sun goes round the earth was spurious.
"sham" is a noun and an adjective which means counterfeit, fake and normally applies to events or situations which have been planned in order to deceive
e.g. sham marriages