Ехать is so called a determinate verb which is used to express motion toward a single direction (one way trip) on a single occasion (i.e. now, at the moment, today etc.).
Eg.: я еду на работу -- I'm going/driving to work (now, at this moment, I'm on my way)
Ездить is an indeterminate verb used to describe motion in many direction (round trip, for example) or habitual action which takes place regularly, often or never.
Eg.:я езжу на работу каждый день -- I go/drive to word every day.
Here are some other pairs of the deteminate/indeterminate verbs:
идти (deteminate) -- ходить (indeterminate). Eg.: Я иду по улице -- I'm walking on the street; Ребёнок учится ходить -- A child learns to walk.
бежать -- бегать,
лететь -- летать,
плыть -- плавать,
тащить -- таскать,
катить -- катать,
нести -- носить,
вести -- водить,
везти -- возить,
ползти -- ползать,
лезть -- лазить (лазать),
брести -- бродить,
гнать -- гонять.