You test..
Start out by taking it to a trans shop for a basic diagnostic.. They can hook up stuff that will tell them if engine load vs rpm in vs out etc are good. That will get you started for learning what is wrong.
If the piston is bad.. most shops would automatically rebuild.