I was having the same problem with an HTC One M9 phone that I bought unlocked that was slated for AT&T network and I am using it on the T-Mobile network. The above APN settings are almost correct. In order for me to get the network data to work, I had to put in APN type as "default" as follows...