The motte was the mound on which the keep was built. The bailey was an enclosed area protecting the hall, barn, stables, kitchens and other buildings. It was usually separate from the motte.
Click on the TV screen button to see a modern reconstruction of a Motte and Bailey castle.