Need to use analogwrite in slave after sending commands from Master-I2C arduino

Need to rotate motor in valve to particular position, when i send command from master to slave (motor) as analogwrite(3,130).its not working.

Here is my code for MASTER

void setup()
{
Wire.begin(50);
Serial.begin(9600);
Serial.flush();

}

void loop() {

Wire.beginTransmission(53);
Wire.write(1);
Wire.endTransmission();

}

Here is my code for SLAVE
include <Wire.h>
int phase1 = 2;// suits the auotmated valve/org 2
int enb1 = 3; //suits the automated valve (PWM)
int c;

void setup()
{
Serial.begin(9600);
Wire.begin(53); // join i2c bus with address
Wire.onReceive(receiveEvent);
}

void loop()
{
delay(100);
}

void receiveEvent(int howMany)
{
c = Wire.read();
if(c==1)
{

digitalWrite(phase1, HIGH);
analogWrite(enb1, 130);
delay(400);
digitalWrite(enb1, LOW);

}

Why are you saying that – it is not working?

I have executed your programs on my MEGA(Master) and UNO(Slave). I have observed PWM signal in my oscilloscope at DPin-3 of UNO.

Copy of your Master Codes:

#include<Wire.h>
void setup()
{
  Wire.begin(50);
  Serial.begin(9600);
  Serial.flush();

}

void loop()
{

  Wire.beginTransmission(53);
  Wire.write(1);
  Wire.endTransmission();

}

Copy of your Slave Codes:

#include <Wire.h>
int phase1  = 2;// suits the auotmated valve/org 2
int enb1 = 3;   //suits the automated valve (PWM)
int c;


void setup()
{
  Serial.begin(9600);
  Wire.begin(53);               // join i2c bus with address
  Wire.onReceive(receiveEvent);
}

void loop()
{
  delay(100);
}

void receiveEvent(int howMany)
{
  c = Wire.read();
  if (c == 1)
  {

    digitalWrite(phase1, HIGH);
    analogWrite(enb1, 130);
    delay(400);
    digitalWrite(enb1, LOW);

  }
}