If you have android phone and want to stop your phone from locking screen then below are steps to follow. Below steps may be little different in your phone but probably same.
Go to settings option from your android phone
Then select lock screen settings.
Press the icon opposite to sleep which shows time.