Delve should have been enabled by your organization for you to be able to change your profile photo from there. Your organization should also have allowed changes to the profile photo in Delve.
Similarly, for you to be able to change the profile photo from Teams, your organization should have assigned a Teams license to you and they should have allowed making changes to the profile photo.