Why is my electric hot water heater producing lukewarm/cold water?
Sounds like the first bit of lukewarm water is just what is in the plumbing. It's warmed up by the air in your home as it sits there. The cold water after is what's sitting in the hot water heater.

With that in mind, it looks like your hot water heater is not working at all.