how to recover contacts from android samsung galaxy y if the cell phone is completely torn into pieces and not workable, while

They might be on the SIM card. If not, and you didn't backup your contacts to a computer hard drive or cloud backup, you cannot recover them.
 
it is possible to recover but would have to have experience working with parts like that but it also depends on how bad and what parts are damaged