Hi Suprya V,
To be able to have data stored and see it when calling the QueryPropertyHistory service on a thing you need to:
1. Create a value stream and associate it with the thing for which you want to retrieve property values.
2.Mark the properties for which you want to have historical data as logged. To do this go to the Properties section of your thing and edit each of the properties that you would like to have logged. Check the logged checkbox situated on the right side of your screen:
3. Save the Thing and use its QueryPropertyHistory service in your Mashup.
Please let me know if you need additional help.