Why does my plumbing shut itself off?
Check the cold water inlet valve on the hot water heater. It's possible that the valve is partially closed, which would allow your expansion tank to pressurize slowly over time. The pressure from the tank would supply hot water to your faucet for a while.