It really depends how it's falling apart and what's causing the damage. For example, if it's water damage you might be looking at a lengthy complicated fix.
4 inch nails in a nail gun you are just testing out
duct tape works wonders
call a handyman or a contractor.