The general rule is that the registration stays with the fuselage. But I have owned an aircraft which had a new fuselage - which was awarded the same registration as the original. The question is why are you asking? It is possible to assemble a 'bitsa' so long as all the parts are certified if EASA, or sound if LAA. Either way the aircraft has to be airworthy and the logs or mod status will tell the story.