Maybe a simpler explanation is what you want.....Your water system works on pressure. The pump you have will run until the pressure is built up in the system and then the pump will turn off. When you open a faucet, the pump will turn on again because the seal is broken. That is called an "on demand" pump. It starts on demand. If you have a leak in your system, then the pump may not ever turn off because it is impossible to build up the pressure completely. That is the first thing to look at if your pump runs continuously assuming you have water in your tank. If your tank runs dry, then the pump will run forever as well. Your water heater runs off of shore power (electric) and if you have a heat exchanger on your engine, it will run off of your engine too. Your hot water heater is a double tank. One side will have the water flowing through it from your fresh water tanks. The other half has antifreeze or coolant running through it from the engine closed cooling system. When the engine is hot, the hot water flows through the side of the tank that contains the coolant and it heats the fresh water from your water tanks. While at the dock, when your engine is cold, you flick the hot water heater switch on to activate the element which protrudes into the fresh water side of your tank to heat the water up. You always must have water in the water heater before you flick on the electric switch. If your hot water heater tank is empty, you will burn the switch out. So make sure you are getting water flowing into your sinks on the hot water side before flicking the switch on. There are some other hot water heater types, like on demand electric and propane heaters, but I assume you have what 99% of the boats have as described above. You may also have an accumulator tank installed somewhere (usually under a sink). This helps maintain a constant flow of water, but many boats don't need them. I hope this gains an understanding of how your system works.