Zend certified PHP/Magento developer

how to power motors correctly on raspberry pi pico [migrated]

I was using my raspberry pi pico and testing motors, and it worked just fine(pins was in GND + 3v3 pins). Then I wanted to use On/Off function in C, And i used the pin GP28_A2 to use it. But it wont turn on the motor. I used ampermeter and voltmeter, and everything was same(3.2volts 0.15-0.3amp) I dont know what to do, please help me.

gpio_init(28);
gpio_set_dir(28, GPIO_OUT);
gpio_put(28, 1);