Freezing of gait (FOG) is a mysterious clinical phenomenon seen in Parkinson’s disease (PD) patients, a neurodegenerative disorder of the basal ganglia (BG), where there is cessation of locomotion under specific contexts. These contexts could include motor initiation, i.e., when starting movement, passing through narrow passages and corridors, while making a turn and as they are about to reach a destination. We have developed computational models of the BG which explains the freezing behaviour seen in PD. The model uses reinforcement learning framework, incorporating Actor-Critic architecture, to aid learning of a virtual subject to navigate through these specific contexts. The model captures the velocity changes (slowing down) seen in PD freezers upon encountering a doorway, turns, and under the influence of cognitive load compared to PD non-freezers and health controls. The model throws interesting predictions about the pathology of freezing suggesting that dopamine, a key neurochemical deficient in PD, might not be the only reason for the occurrences of such freeze episodes. Other neuromodulators which are involved in action exploration and risk sensitivity influence these motor arrests. Finally, we have incorporated a network model of the BG to understand the network level parameters which influence contextual motor freezing