How does a transistor amplify current or voltage?

For example, it's not taking the 0.7V produced from my 5V USB power supply and amplifying that directly into a 12V power source. How is this amplification?

Well because if you want amplification according to your definition then it is impossible to amplify anything at all.