"best" is a relative term that could mean: Cheapest, most convenient, or most comfortable?
That town has a stop on the Circumvesuviana that travels between Sorrento and Naples; it a commuter train, nothing fancy. It's cheap; it cost something like 3 euro to ride from Sorrenot to Naples and that takes 1 houtr and 10 min (less time for Vico Equence) becaseu the train stops frequently. The Circumvesuviana runs every 30 min all year round.
From the Naples central train station where the Circumvesuviasna takes you you take a train from Naples to Rome; AV train takes 70 min andf costs soemthin like 38 euro; IC train takes 2 hours and cost 22 euro. All the trainms go to Rome Termini. trains leave Naples for Rome nearly hourly evne in the winter.
The bus presumably is the one that runs from Rome Tiburtina to Sorrento and has a stop in in Vico Equense. In the summer the 2 bus companies (Marozzi and CURRERI) have 3 buses. One of whihc is very early in the morning and then there are 2 in the afternoon. It is not clear to me if there is any service in the winter and what there service in the fall and spring are.
Here is a previous psot about that