While there is no formal dress code and foreigners are tolerated in whatever they wear though shorts and swimsuits are best left to tourist areas and the beach. Remember that if you are traveling to the highlands of Ecuador the temperatures are much cooler than you would think at the equator. It is cold at night and you will want to bring a sweater or jacket if you are going outside after 6pm. By looking important you will be treated as someone important and remember to shake hands. Beginning your conversation by introducing yourself and asking the person's name that you are dealing with is both friendly and assists you in receiving good service.
Small talk is a normal part of everyday life.
If you want to make polite small talk asking about someone's family, particularly the children is always a good subject. Health and weather can be used as topics but family is much more endearing. Ecuadorians are overjoyed to show photos of their children - just be warned that you'll be expected to remember their names. Ecuadorians have an enviable ability to remember faces, names and family relationships. So my best advise is to make notes if you have any doubts about your ability to keep up with it all.