If you you have a good study space at home or a café that is reliably a productive place for you, it makes sense to stick with this when you are under pressure.
Listen to calming music
Good background music for studying can actually help you pay attention to the task at hand. Songs with lyrics can be distracting.
Eliminate distractions
Eliminate distractions by silencing your phone and annoying background noises such as the TV or radio. Make a pact with yourself to avoid checking social media until your study session is over.