Strange behaviour in closed loop mode

Hello! I am trying to work with SimpleFOC on STM32G431 in velocity closed loop but i have some problems. In open loop mode motor spins and output space vector modulation is ok (on attached screenshot) and in closed loop phase of space vector modulation is stucked in one position and motor doenst spin (but “eat” current) modulation is shown on second screenshot. In open loop controller electrical angle changes according incrementation of target value and in closed loop electrical angle is calculated according to shaft angle. I get shaft angle position from absolute encoder, ,maybe electrical angle offset is wrong and controller cant undersatand in which phase motor? And why motor doesnt spin when pshase voltgages are applied? Thanks!