Vaginal infections

Can you get infections from not having sex, just you know doing day to day things? How can you tell if it's and STI or just a normal vaginal infection?