You'll see a lot of British water heaters with our equivalent of NM run straight into the unit, but it's not the accepted method.

The standard approach is to terminate the fixed wiring to a box next to the tank, then use a flex outlet plate and use heat-resistant flexible cord for the hookup (generally butyl rubber).

Occasionally you'll find one with a standard plug/receptacle combination, but hardwired is the norm.