So what colours are the cables on the connectors?
One will be live (brown) and one will be neutral (blue), there will be no earth connection as this will be a class 2 fan.
So you need a plug head and 2-core flex, or a 2 core and earth flex (and cut out the earth cable).