Dodging in Assassin's Creed requires you to reach Rank 6 first. Once you're there, stay in high profile mode during combat to enable defensive moves.
Right as an enemy attacks, press the X button. Time it correctly and Altaïr will dodge the strike; mistime it, and he'll take the hit instead.