Please be specific. You are referencing 2 different protocols.
FTP listens on port 21. Typically, FTP is installed as part of IIS and is hosted by the "Microsoft FTP Service".
FTPS is FTP over SSL on port 21 and is also hosted by IIS.
SFTP listens on port 22. It is typically implemented as part of the OpenSSH feature of Windows.
You have to do basic troubleshooting yourself. Forum users have no way of knowing what you have configured on your server.
Use Computer Management and verify that the service is running.
Use the netstat tool to verify that your system has a process listening on the correct port.
https://www.configserverfirewall.com/windows-10/netstat-command-to-check-open-ports-in-windows/
On a different machine use Powershell's Test-NetConnection cmdlet to test connectivity to the port.