I think gmail only allows connections with TLS, so you should use POP3S instead of POP3
Try changing
Store store = emailSession.getStore("pop3");
to
Store store = emailSession.getStore("pop3s");
also connection should use the same host that is declared in properties
store.connect(host, userName, password);