1) TWRP is a custom recovery, not a way of rooting.
2) Neither TWRP nor root have anything to do with connecting.  You (or the app or program you used to root) must have done something else - and that's preventing connecting.
What did you use to root?  Did you flash a rooted ROM, or run something else?  (If it was a ROM, it's probably defective.  If it was something else, we can't even make wild guesses without knowing what it was.)