Three fire crews freed a woman from a car after it landed in a ditch following a two-car collision.