iPhone still thinks it's in headphone mode after replacement part

I replaced headphone jack successfully but my phone still thinks it's in headphone mode. When I connect the headphones the sound come out through them. When I unplug them the iPhone still thinks the headphones are there.

I test this logic Board in two iPhones and the same error, so the problem is in the logic I guess Any ideas?

UPdate: the iPhone is always in headphone mode, even if I plug or unplug headphones (originals)