Different tenses could be used for specific instances. But I get the feeling that you are asking about a general statement of fact that could refer to any time. If that's the case, use: The coconut trees sway when the wind blows.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.