If you are asking when you want to answer, you can say 元気 or 元気だ to your friend, but if you wanna answer to the person elder than you for example, better to say 元気です
な is for adjective as you know, so we can say 元気な人, but this word な depends on adjective you use. Do I get what you mean??