Please explain if it is preferable to take homeopathy and Ayurvedic medicines?

For what problem? Homeopathy and ayurveda are both whole systems approaches to treatment, and may be useful in a wide variety of conditions. The path selected depends on what is ailing you -- which you have not shared. Sometimes conventional treatment is needed too. One does not have to rule out the other, as collaboration may be very good for the patient.