Check to see if the hard drive is dead or is dying. If so it could be the cause of the problems.

Also check the cables on the hard disk, as well as CDROM/DVDROM while you are at it.

The third thing I would check is the install media that you are using. Perhaps the XP CD is flawed, scratched or damaged in some way.