The Cap Holes modifier builds faces in the holes in a mesh object. A hole is defined as a loop of edges, each of which has only one face. For example, one or more missing faces from a sphere would produce one or more holes. The modifier works best for filling planar holes, but can do a reasonable job with non-planar holes as well.
Example: Cap a hole in a sphere:
Create a sphere.
Apply an Edit Mesh modifier to the sphere.
Use the modifier stack to access the Face sub-object level.
Select several contiguous faces and delete them.
Go to the Object level of the stack.
Apply a Cap Holes modifier.
The hole you created are filled.