You may install a small sub panel. You may use 12/3 NMWU directly buried. Please ensure that the pump is CFI protected. All metal parts should be bonded together with copper wire and connected to the grounding plate buried 600 cm. It is recommended that you from a friendly pool electrician. Also, please do follow the code rules.