Electric shower!
It does not have enough flow of water, so rather than burn you, itself shuts off for safety. You are turning it up too high, or the water pressure is too low, or there is a restriction in the flexible pipe, or the shower head. Quick check - remove the head, does it work OK then?
Are you in a hard water area?