I live in a condo and have an electric hot water heater. Every time I need to wash clothes or use the dishwasher, the hot water never comes out. However, when I turn the hot water on in the bathroom upstairs in the tub, it will be hot for 2 minutes then turn cold the entire time. The hot water works fine in the kitchen sink. What could be the problem? I have no clue.

Example: for the first time today, I arrived home from work, turn the shower on, the water starts hot and then turns cold after 2 minutes. (mind you this was the first time today that I demanded water)