Water is leaking out of the heater

Heater was not working when I bought the boat, I gave the fan a little push and it worked. Got the boat out today and checked it, heater wasn't blowing so I pulled up cushion in the front to help the fan out again and there was water in the carpet. I stuck my head in And it was leaking out of the Heater box. What do I do. I guess I need to pull it out but what am I going to find and how do I fix it?