Think of space in 2d, like a stretched out bed sheet. Anything with mass will affect it, the more mass, the bigger the effect. Set a bowling ball on the sheet, then roll a golf ball past it. The golf ball follows the curve of the sheet (space). Mass/gravity also affects light and time.