While you could try, I am not so sure it would work out well. The phone you have now uses a different network than the one you are thinking of placing the parts in. Xfinity (Comcast) has its own, which is different than the other which is on Sprint's network.
Now, if they are the exact same phone (to a point) you should be able to just remove the exterior (front and back) and place those on the phone you have that is damaged.
If they aren't the same, then it really wouldn't be worth the effort due to the network differences. If that is the case, then it would be cheaper (and safer) to just buy a new device.