It's easiest to just get a feel for the classes, and see which one you enjoy defending most with. Some people are perfectly content camping their sentry gun as an engi, which is a pretty good defense, but it won't work if you get bored partway through and run off.
As for which class is best for...