Hello, In the picture, the fan is wired to a GPIO fixed voltage pin and Ground. It is unlikely fan can be controlled from those GPIO pins.
VIM2 has a dedicated fan header and fan can be controlled thru settings, it works well.
I am not sure if fan speed or fan on/off can be controlled on the VIM. Not saying there is no way, but I don’t know how one would do it.