Employee was operating CAT 773D haul truck in pit. Employee lost control of the haul truck and turned the truck to the inside berm and went into the ditch, resulting in the haul truck turning over on its side. Employee alleges the brakes went out. A brake check and review of the pre-operation inspection shows that the brakes were functioning properly.