Windows XP does not come with a dvd decoder built into the operating system. You need to use third party software to play dvd movies in this operating system. Vista does have one.
You can use a commercial program like PowerDVD or WinDVD. Or you can use a free player like VLC or Media Player Classic.
Here is a link to VLC: http://www.videolan.org/vlc/