A BJT can be used in three configurations depending upon the way three terminals are used.
This video will help you to understand the working of common base, common emitter, common collector configuration.
A transistor is a semiconductor device used to amplify electronic signals. It is composed of semiconductor material usually with at least three terminals for connection to an external circuit.