sticking brakes

Hi, I’m new to the forum and somewhat new to ATV’s. I Recently purchased a 2004 sportsman 400. It was sitting for approximately 2 years. When I got it the front brakes were not working and the pedal was slightly working. The pads seemed to be okay. Not completely worn, but due to be changed soon. The front master cylinder reservoir was empty. I cleaned it out and added fluid, then bled the brakes front and back. Everything seemed to be working well.I took it out today and they locked up. I shut the machine down and about 5 minutes later they released. The front brakes now work a little bit. Does anyone have some idea what is going on and what I can do to fix it?