Multiple Availability Groups on one instance
The first availability group has an endpoint which is listening on port 5022. how can I change the port for second and third availability group?


All availability group traffic flows over a single endpoint and there is only one endpoint allowed per instance. So, in this case, since you already have an endpoint setup you only need create the new availability group.