Have not tried JackCom or Headset Toggle yet, but have reset my Nexus 6p several times,
First scenario: just installing minimal amount of apps - with default + Google Inbox, Facebook and Instagram I still get the problem (no sound whatsoever from speakers, but sound from jack & bluetooth)...