Go to Help -> Install New Software and select Web, XML, Java EE and OSGi Enterprise Development:
Then you might get a notification like the below:
Click Next and accept the terms and Finish.
Once installation is completed (you can review status in the bottom right corner of STS), restart the software (there should be a prompt for it) and it should work: