A useful analogy I've heard involves a pond that can gain or lose water by two mechanisms: (1) liquid inflow/outflow and (2) condensation/evaporation. Any change in the pond level—from yesterday to today—tells you nothing on its own about how much each mechanism participated.
That is, there might have been a lot of net inflow and moderate net evaporation, say, or moderate net inflow and minimal net evaporation, and so on.
Here, the water level is analogous to the system internal energy, and the net liquid flow and net phase change are analogous to the work and heat (it doesn't matter which) through which the system interacts with the surroundings. The water level is a state function; the water transport mechanisms are path functions.
Further, there is no inflow "contained" in the pond; any incremental amount of water that flowed in might have remained in the pond, or flowed out, or evaporated; we just don't know.
You may find the analogy well suited to this question because if you conceptually cover the pond to eliminate condensation/evaporation, you know that the water level change is due solely to liquid inflow/outflow. Similarly, if you block the inflow/outflow channels, then the water level change is due solely to condensation/evaporation. (Note that you still know only the net amounts for each mechanism.)
(A caution to avoid confusion: The original system is assumed to be closed; the pond in the analogy is not closed because we're using water transfer as a surrogate for heat and work.)
To address the original question, if heat or work is blocked for a closed system, then the fact that internal energy is a state function implies that the contribution of the nonblocked mode of energy transport can now be determined solely from the system state—which is not the case if both heat and work interactions are allowed.