The game controller itself is freezing or the game is freezing? What console? Either way you might try plugging the controller in to charge or re-synching it - assuming the controller is wireless.
Otherwise, either try a different controller or carefully clean off any controller gunk that might be causing the buttons to stick. Sometimes buttons just get stuck for no obvious reason. I find that pressing them all/fiddling with the shoulder buttons can unstick them.