Both can be used. You may use either when you want a response from something. Often a reply is something written but an answer can be given in different ways (voice or words).
Answer a --- question
email
telephone
reply to --- a question
an email
a message