Bldc motor program not working, help

Hii, i am building bldc motor that uses 6 digital hall sensor to detect position sensor. I have done hardware part but i am not good at program. Although i did one program. Please check and give me corrective advise.

I do not see your code. When you post it, use code tags.

Tell us what you expect your code to do, what it actually does and how that differs from your expectations.