What exactly do you mean by not boot? You don't see the Ubuntu bootloader, or it fails when you try to start?
If you installed XP or Vista after Ubuntu, then you just wiped the GRUB bootloader. If that is the problem, following this will get it installed again.
On the other hand, if you see the GRUB menu and Ubuntu fails to load when selected, that would be another problem entirely.