Arduino Nano 33 BLE digital pins not working

I am a beginner in working with an Arduino.
I have a vibration motor connected to the ground and the D5 Pins.
I also wrote a code which should give 3.3V as output for the D5 pin.

void setup() {
// put your setup code here, to run once:
pinMode(5, OUTPUT);

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(5, HIGH);

Instead of 5 as pin I've also tried D5 and 23 cause these were things I found on the internet and might work as alternative.

Sadly, my vibration motor does not react at all, but it does react if I connect my vibration motor directly to the 3.3V pin.

Can someone help me spot the problem of why my digital pins are not working?

You can't power a vibration motor directly from the pins. If you do that, you will have a good chance of destroying your Arduino board. Although always very dangerous, it might be possible to do it on a 5 V AVR Arduino board, so you might find some bad tutorials on the Internet from people using those boards. The situation is much worse on the Nano 33 BLE.

You would need to use a transistor for switching the motor.

As pert says, you should not drive motors directly with I/O pins.

Have a look at the datasheet. You can find it under Tech Specs in the store.

The I/O pins are weaker than older Arduinos build with larger silicon technologies. They also do not like inductive loads.