Connecting Servo Motor with MPU6050

So I found out my problem, I wasn´t connecting the whole circuit because of the grounds. But now it is corrected. Theres still a problem, when I use the code, the servos move, but not consequently the mpu, they go from 180 degrees to 0 degrees.