To be able to use Find My iPhone, there are 3 conditions:
1] you must have set this up before the iPhone is lost;
2] iPhone must be turned on with battery power - not dead; and
3] iPhone must have connection - wifi or cellular - to the Internet.
If any of the above conditions are not met, you cannot locate the iPhone
using iCloud.com