Effect of feedback of massive stars in the fragmentation, distribution, and kinematics of the gas in two star-forming regions in the carina nebula