That happened because Windows XP uses the (old) NTLDR while Windows Vista/Windows 7 use the Windows Boot Manager to load the operating system; upon Windows XP's installation, NTLDR replaced the Windows Boot Manager due to a lack of forward compatibility.

The resolve the issue, insert your Windows 7 DVD, restart your computer, and press any key to boot from CD/DVD when prompted. (You may have to edit your BIOS settings to set your optical drive as your primary boot device.) Once the Windows 7 installer launches, proceed through the keyboard/language selection and, instead of clicking Install Now, choose "Repair my Computer" from the bottom left corner. Finally, choose the Startup Repair option and restart your computer once it completes. Alternatively, boot into Windows XP and install VistaBootPRO, using it to forcefully reinstall the Windows Boot Manager and, if necessary, recreate the operating system entries.

NOTE: Both methods will result in Ubuntu being unbootable unless/until you reinstall GRUB.

Hope this helps,
John