If you switch model supports Power Over Ethernet (POE) you can connect the phone directly to the switch (and it will get power). If it does not, you need a power adapter for the IP phone.
Let me know if you need any help with the port configuration itself.
Regards
Farrukh