DDR 3 is faster, if your computer (motherboard) supports it.
If however it does not, then there is no point even thinking about it, as it won't fit into the slot.
If you haven't bought your computer at all recently, it's probably DDR2.
They are certainly not compatible with each other.