The Qur'an includes narratives about many historical figures and groups described in the Old Testament. The Qur'an is at times critical of some of the groups it describes to illustrate those who erred in thinking or their following of his laws.
So Jews and Christians are criticised for behaving contrary to the beliefs and principles of their own scriptures. The Qur'an similarly criticizes certain Muslim individuals or groups for their actions which also contradict religious teachings. Muslims view all these references as historical lessons from which to learn.
It should be noted that the Qur'an also praises Christians and Jews who follow their own scriptures. Additionally, Christians and Jews are given the special status of "People of the Book."