Theory of flow and fracture of solids