You didn't state which iPhone you have but if you have the iPhone X make sure you are running iOS 11.1.2 or later as there was a fix for the iPhone X not working in cold weather. Otherwise, the following may help:
Keeping iPhone, iPad, and iPod touch within acceptable operating temperatures - Apple Support