This is usually an indication of a faulty hot water valve, clogged pipes, or a faulty bathroom fixture. If there was a fault at the hot water tank, then typically you would not get hot water to the entire house. It’s best to call a plumber to fault find, diagnose and fix.