How to upgrade to Android 2.3 from 2.2?
If there is an official update to Android 2.3 (check the post on Gingerbread updates) then you'll get a notice on your phone (eventually). Just follow the instructions.

If there's not an official update and you don't want to wait for one, you'll need to root your phone and install a Custom ROM.