Problem in arduino UNO while controlling BLDC motor

So, what is the problem ?

There's something wrong with your wiring or your software.
Or both.