Can i exchange a iphone 3gs 8gb memory and put in another iphone 3gs gb?

I have a iphone 3 gs 8 GB, the software is working perfect but the screen and the button all are very worn out. And i have another 3 gs 8 GB that the memory is bad. Is it possible for me to exchange the memories and what are the tools that i need to do so.

please don't come to me saying that is not worth it or that i should buy a new phone.

What the. Replacing memory from another iPhone won't make the one with the other iPhone's memory better. Remove applications, delete things etc from your "slow" iPhone.

But, if you want to replace and exchange the memories (which will probably break your iPhone because each memory has a ID number which sets and specifies unique codes and algorithms to the Operating System (iOS) to download applications etc.

Not possible