In general relativity, gravity is a curvature of space time.
You can imagine that the ball is placed on the trampoline, you will see the curvature of its surface, if you place a small ball nearby, the ball will start to move to the center due to the curvature.
Similar case for black hole, then...