Cant load windows xp

Im working on this computer i just put a new harddrive in it but when i put the windows xp disk to load it for the first time it stops when it says “windows set up”, it doesnt go any further. I tried it with 3 diffrent version of xp but it just stops so i tried to install windows 2000 in it and it worked. It had windows xp in it before so i know it works with it. Please help

What kinda of computer do you have? How did you setup your new HDD? What version of XP did you try?? Can you see the HDD in the BIOS?