I feel very much the same. My motivation comes from my peers. I see them working their butts off and I feel bad because I'm lazy and losing marks because of it even though I can clearly do so much better. Right now you need to focus on getting rid of distractions, find a quiet environment and fill it with your study notes/work or whatever it is you need to do for that day. Have regular breaks so you don't get bored or burnout. Food and drink are pretty important too, so can't work on an empty stomach. So have some during your breaks.
The hardest thing to do is keep a routine. If you can do this, then your set!
^ Hope this helps a little..