Your phone vibrates when you plug it in. So if it’s intermittently vibrating you probably have a bad connection. Try another cable. Some third party cables have variance issues with the lightning plug that result in a lose connection. Also, make sure you iPhone is unlocked when you first plug it in (a recent update restricts data transmission via the lightning port if the phone hasn’t been unlocked recently.