Thanks and thank you are interchangeable, so you can use them both in the same situations. But I would use "Thank you" In more formal situations, and "Thanks" talking to friends or family.