Basically, heat from the earth’s interior produces a molten layer of magma. The tectonic plates float on top of this material. The molten magma is undergoing convection, bringing the hottest material to the surface and allowing cooler material to sink. As the hot magma reaches the top, it spreads sideways (nowhere else to go) and any plates floating on it move also.
You can see this in a pot of simmering water containing small pasta, such as orzo. The grains will move out to the edge, sink to the bottom and the be brought back up with the hotter water.