If your auto-rotate feature is not working, it could be due to hardware or software issues, or the Portrait Orientation Lock feature being enabled. There's also a chance that something is physically blocking the sensors on your iPhone, preventing the screen from turning.