The most common cause is faulty display or phone assembly.
In some cases, some internal system issues can also result in automatic scrolling problems in iPhone.