Despite not being part of the USA, they share the same visa policy. You have to apply for visitor visa, or ESTA which allows you to visit both countries.
You are obliged to have a valid travel authorization before entering the country, otherwise you won’t be allowed to enter its territory.
Tourist visa doesn’t allow you to work or study in Puerto Rico nor USA, but you can attend a business meetings or events.