Bonuses of the same name do not stack. With the only exception being DODGE bonus.
So mage armor, is an ARMOR bonus, so it stacks with the shield spell, which is a SHIELD bonus (In 3.0 its a cover bonus).
Here is a list of the basic armor bonuses.
Shield, Armor, Natural Armor, Dodge, Cover...