When connected to aux port, iPhone still on speaker mode.

Hello,

When I plug my headphones, the iphone still plays on speaker mode.

I tried restoring my iphone as new, and replacing the charging dock .

What can be still be wrong? any ideas?

Is the charging dock the only part responsible for the aux?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0