Context. Massive black hole binaries, formed in galaxy mergers, are expected to evolve in dense circumbinary discs. Understanding of the disc-binary coupled dynamics is vital to assess both the final fate of the system and its potentially observable features. Aims. Aimed at understanding the physical roots of the secular evolution of the binary, we study the interplay between gas accretion and gravity torques in changing the binary elements (semi-major axis and eccentricity) and its total angular momentum budget. We pay special attention to the gravity torques, by analysing their physical origin and location within the disc. Methods. We analysed three-dimensional smoothed particle hydrodynamics simulations of the evolution of initially quasi-circular massive black hole binaries (BHBs) residing in the central hollow (cavity) of massive self-gravitating circumbinary discs. We performed a set of simulations adopting different thermodynamics for the gas within the cavity and for the "numerical size" of the black holes. Results. We show that (i) the BHB eccentricity growth found in our previous work is a general result, independent of the accretion and the adopted thermodynamics; (ii) the semi-major axis decay depends not only on the gravity torques but also on their subtle interplay with the disc-binary angular momentum transfer due to accretion; (iii) the spectral structure of the gravity torques is predominately caused by disc edge overdensities and spiral arms developing in the body of the disc and, in general, does not reflect directly the period of the binary; (iv) the net gravity torque changes sign across the BHB corotation radius (positive inside vs negative outside) We quantify the relative importance of the two, which appear to depend on the thermodynamical properties of the instreaming gas, and which is crucial in assessing the disc-binary angular momentum transfer; (v) the net torque manifests as a purely kinematic (nonresonant) effect as it stems from the low density cavity, where the material flows in and out in highly eccentric orbits. Conclusions. Both accretion onto the black holes and the interaction with gas streams inside the cavity must be taken into account to assess the fate of the binary. Moreover, the total torque exerted by the disc affects the binary angular momentum by changing all the elements (mass, mass ratio, eccentricity, semimajor axis) of the black hole pair. Commonly used prescriptions equating tidal torque to semi-major axis shrinking might therefore be poor approximations for real astrophysical systems.