first check the master cylinder.
then check the oil level.
then check the front tyres if u feel any spots of oil or water like on rims or bolts or anywhere.
make sure everything is fine.
now you need to bleed the brake oil to set it and both tyres must be with same pressure/bleed else ur car will take turn while applying brakes.
after bleeding, level the gear oil again and take a ride see if it is working fine
for bleeding process u need to press the pedal again and again and then lock the bleeding nozzle then again press the pedal fully and open the nozzle to give it full pressure and then close it again. repeat the process till u get good brake setup.
apply same procedure for both tyres. and u r done