If you are using the headphones given in the box, you have to plug it into the charging port of the iPhone.
If you are using any other headphones, you have to use the adapter given in the box. Plug the headphone into one end of the adapter and the other end goes into the iPhone charging port.