If you're playing on mobile combat is disabled by default since the commands aren't very usable on phones. If you're not on mobile make sure combat is toggled on in the phone with the crosses swords icon