If its spongey and damp them it's wet rot and just needs the soft areas replacing and surrounding areas hardened with wood hardener
If it's dry rot it goes powdery and will be dryer to the touch - this is caused by a fungal infection eating away and is a bit more serious as the fungus spreads