There is a specific order things need to be done. You need the fountain, then the walls, then the roof - only then can plumbers start. Because water runs downhill, the plumbers MUST be done next, as otherwise something else might be in the way of where a pipe needs to be. Once the plumbers are done, then the HVAC people come, and then after that the electricians come - it is no problem for them to put power to the water heater at this point - the water heater must already be installed. (or at least roughed in). This is how all houses are done, so there is never a problem unless all the electric is delayed.
In large buildings things are done different. Architects spend more time designing exactly where the pipes, HVAC, and wires go. Then the trades people work to spec, and they can thus work in any order so long as their parts go where they are told to. This is a lot more effort/cost though, so it isn't worth it for a small house but is critical for something large. A small house turns out to have plenty of space for everyone to design as they go, and thus this is cheaper. For a large building there are a few places where there is barely enough space for everything that must go through that spot so you better ensure upfront there is enough space.
In large buildings things are done different. Architects spend more time designing exactly where the pipes, HVAC, and wires go. Then the trades people work to spec, and they can thus work in any order so long as their parts go where they are told to. This is a lot more effort/cost though, so it isn't worth it for a small house but is critical for something large. A small house turns out to have plenty of space for everyone to design as they go, and thus this is cheaper. For a large building there are a few places where there is barely enough space for everything that must go through that spot so you better ensure upfront there is enough space.