Inspect the subfloor, you could see rot and also be sure to check around walls for signs of leakage. Also, check for loose boards, these can sometimes indicate that water is leaking into the joist system from above. If you find a board that is not too badly damaged by rot or which has a small hole in it where water enters, you may be able to replace the board only. Just remove a few nails and pull up the board carefully.