From what you eat and drink to how much time you spend on your phone before bed, there could be a number of reasons why you aren't sleeping through the night